aboutsummaryrefslogtreecommitdiff
path: root/grumpy/znc/templates/deployment.yaml
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2020-03-05 20:58:34 -0800
committerMax Resnick <max@ofmax.li>2020-03-05 20:58:34 -0800
commit745347bc347406a48c9e7cf20c17b8c3f1d8e961 (patch)
treea3965704264190fdede6007800ec5fabcb28482c /grumpy/znc/templates/deployment.yaml
parent109fad80f323567d6751c9f51e20dd41582d43bf (diff)
downloadgrumpy-charts-745347bc347406a48c9e7cf20c17b8c3f1d8e961.tar.gz
add znc
Diffstat (limited to '')
-rw-r--r--grumpy/znc/templates/deployment.yaml56
1 files changed, 56 insertions, 0 deletions
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 }}