From 745347bc347406a48c9e7cf20c17b8c3f1d8e961 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Thu, 5 Mar 2020 20:58:34 -0800 Subject: add znc --- grumpy/znc/templates/deployment.yaml | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 grumpy/znc/templates/deployment.yaml (limited to 'grumpy/znc/templates/deployment.yaml') diff --git a/grumpy/znc/templates/deployment.yaml b/grumpy/znc/templates/deployment.yaml new file mode 100644 index 0000000..e33b6ac --- /dev/null +++ b/grumpy/znc/templates/deployment.yaml @@ -0,0 +1,56 @@ +{{- $fullName := include "znc.fullname" . -}} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ $fullName }} + labels: +{{ include "znc.labels" . | indent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: {{ include "znc.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "znc.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ template "znc.serviceAccountName" . }} + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 + containers: + - name: {{ .Chart.Name }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - name: zncconf + mountPath: "/mnt/config" + volumes: + - name: zncconf + secret: + secretName: {{ $fullName }}-confs + items: + - key: znc + path: znc.tar.gz + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} -- cgit v1.2.3