The great reset, we moved infra into two clusters (sekibanki et seija)
This commit is contained in:
4
apps/seija/znc/kustomization.yaml
Normal file
4
apps/seija/znc/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
resources:
|
||||
- pvc.yaml
|
||||
- services.yaml
|
||||
- statefulset.yaml
|
11
apps/seija/znc/pvc.yaml
Normal file
11
apps/seija/znc/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: znc-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
storageClassName: hcloud-volumes
|
17
apps/seija/znc/services.yaml
Normal file
17
apps/seija/znc/services.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: znc
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app.kubernetes.io/name: znc
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 4921
|
||||
targetPort: 4921
|
||||
name: https
|
||||
- protocol: TCP
|
||||
port: 4922
|
||||
targetPort: 4922
|
||||
name: http
|
40
apps/seija/znc/statefulset.yaml
Normal file
40
apps/seija/znc/statefulset.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: znc
|
||||
labels:
|
||||
app.kubernetes.io/name: znc
|
||||
spec:
|
||||
replicas: 1
|
||||
serviceName: "znc"
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: znc
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: znc
|
||||
spec:
|
||||
volumes:
|
||||
- name: znc-config
|
||||
persistentVolumeClaim:
|
||||
claimName: znc-pvc
|
||||
containers:
|
||||
- name: znc
|
||||
image: znc:1.10.1
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 4921
|
||||
volumeMounts:
|
||||
- name: znc-config
|
||||
mountPath: "/znc-data"
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
runAsNonRoot: true
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
Reference in New Issue
Block a user