all repos — infra @ 82be1cf6c554fe1566434b072658defc064ae5a0

infrastructure manifests and setup notes

apps/znc/znc.yaml (view raw)

 1apiVersion: apps/v1
 2kind: Deployment
 3metadata:
 4  name: znc
 5  labels:
 6    app: znc
 7spec:
 8  selector:
 9    matchLabels:
10      app: znc
11  template:
12    metadata:
13      labels:
14        app: znc
15    spec:
16      nodeSelector:
17        arch: "amd64"
18      imagePullSecrets:
19        - name: registry-creds
20      containers:
21        - name: znc
22          image: znc:slim
23          imagePullPolicy: IfNotPresent
24          volumeMounts:
25            - name: config
26              mountPath: "/znc-data"
27              readOnly: false
28          ports:
29            - name: irc
30              containerPort: 6666
31      volumes:
32        - name: config
33          persistentVolumeClaim:
34            claimName: znc-config-dir
35---
36apiVersion: v1
37kind: Service
38metadata:
39  name: znc
40spec:
41  type: LoadBalancer
42  selector:
43    app: znc
44  ports:
45    - name: irc
46      port: 6666
47      targetPort: 6666