all repos — infra @ 9aecc3012731610d6e3f708f6cfb39394bf06dad

infrastructure manifests and setup notes

Add znc
Anirudh Oppiliappan x@icyphox.sh
Fri, 18 Jun 2021 19:00:14 +0530
commit

9aecc3012731610d6e3f708f6cfb39394bf06dad

parent

18c124d3ef3d6a6ecdc378b644dcc51f6d6f4a1b

3 files changed, 82 insertions(+), 16 deletions(-)

jump to
A apps/znc/pvc.yaml

@@ -0,0 +1,10 @@

+apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: znc-config-dir +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi
A apps/znc/znc.yaml

@@ -0,0 +1,47 @@

+apiVersion: apps/v1 +kind: Deployment +metadata: + name: znc + labels: + app: znc +spec: + selector: + matchLabels: + app: znc + template: + metadata: + labels: + app: znc + spec: + nodeSelector: + arch: "amd64" + imagePullSecrets: + - name: registry-creds + containers: + - name: znc + image: znc:slim + imagePullPolicy: IfNotPresent + volumeMounts: + - name: config + mountPath: "/znc-data" + readOnly: false + ports: + - name: irc + containerPort: 6666 + volumes: + - name: config + persistentVolumeClaim: + claimName: znc-config-dir +--- +apiVersion: v1 +kind: Service +metadata: + name: znc +spec: + type: LoadBalancer + selector: + app: znc + ports: + - name: irc + port: 6666 + targetPort: 6666
M nginx/ingress.confnginx/ingress.conf

@@ -1,19 +1,28 @@

stream { - upstream ingress443 { - server 192.168.4.150:443; - } + upstream ingress443 { + server 192.168.4.150:443; + } + + upstream ingress80 { + server 192.168.4.150:80; + } - upstream ingress80 { - server 192.168.4.150:80; - } - server { - listen 443; - proxy_pass ingress443; - proxy_next_upstream on; - } - server { - listen 80; - proxy_pass ingress80; - proxy_next_upstream on; - } + upstream irc { + server 192.168.4.151:6666; + } + server { + listen 443; + proxy_pass ingress443; + proxy_next_upstream on; + } + server { + listen 80; + proxy_pass ingress80; + proxy_next_upstream on; + } + server { + listen 6666; + proxy_pass irc; + proxy_next_upstream on; + } }