webhook-freedns/deploy/freedns-webhook/templates/deployment.yaml

69 lines
1.9 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
2019-04-14 20:18:24 +00:00
kind: Deployment
metadata:
2022-03-12 23:35:44 +00:00
name: {{ include "freedns-webhook.fullname" . }}
2019-04-14 20:18:24 +00:00
labels:
2022-03-12 23:35:44 +00:00
app: {{ include "freedns-webhook.name" . }}
chart: {{ include "freedns-webhook.chart" . }}
2019-04-14 20:18:24 +00:00
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
2022-03-12 23:35:44 +00:00
app: {{ include "freedns-webhook.name" . }}
2019-04-14 20:18:24 +00:00
release: {{ .Release.Name }}
template:
metadata:
labels:
2022-03-12 23:35:44 +00:00
app: {{ include "freedns-webhook.name" . }}
2019-04-14 20:18:24 +00:00
release: {{ .Release.Name }}
spec:
2022-03-12 23:35:44 +00:00
serviceAccountName: {{ include "freedns-webhook.fullname" . }}
2019-04-14 20:18:24 +00:00
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --tls-cert-file=/tls/tls.crt
- --tls-private-key-file=/tls/tls.key
env:
- name: GROUP_NAME
value: {{ .Values.groupName | quote }}
2019-04-14 20:18:24 +00:00
ports:
- name: https
containerPort: 443
2019-04-14 20:18:24 +00:00
protocol: TCP
livenessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: https
2019-04-14 20:18:24 +00:00
readinessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: https
volumeMounts:
- name: certs
mountPath: /tls
readOnly: true
2019-04-14 20:18:24 +00:00
resources:
{{ toYaml .Values.resources | indent 12 }}
volumes:
- name: certs
secret:
2022-03-12 23:35:44 +00:00
secretName: {{ include "freedns-webhook.servingCertificate" . }}
2019-04-14 20:18:24 +00:00
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}