| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| name: {{ include "godaddy-webhook.fullname" . }} |
| labels: |
| {{ include "godaddy-webhook.labels" . | indent 4 }} |
| spec: |
| replicas: {{ .Values.replicaCount }} |
| selector: |
| matchLabels: |
| app.kubernetes.io/name: {{ include "godaddy-webhook.name" . }} |
| app.kubernetes.io/instance: {{ .Release.Name }} |
| template: |
| metadata: |
| labels: |
| app.kubernetes.io/name: {{ include "godaddy-webhook.name" . }} |
| app.kubernetes.io/instance: {{ .Release.Name }} |
| spec: |
| serviceAccountName: {{ include "godaddy-webhook.fullname" . }} |
| {{- with .Values.imagePullSecrets }} |
| imagePullSecrets: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |
| 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 |
| - --secure-port={{ default 443 .Values.pod.securePort }} |
| env: |
| - name: GROUP_NAME |
| value: {{ .Values.groupName | quote }} |
| - name: LOGGING_LEVEL |
| value: {{ .Values.logging.level }} |
| - name: LOGGING_FORMAT |
| value: {{ .Values.logging.format }} |
| - name: LOGGING_TIMESTAMP |
| value: {{ .Values.logging.timestamp | quote }} |
| ports: |
| - name: https |
| containerPort: {{ default 443 .Values.pod.securePort }} |
| protocol: TCP |
| livenessProbe: |
| httpGet: |
| scheme: HTTPS |
| path: /healthz |
| port: https |
| readinessProbe: |
| httpGet: |
| scheme: HTTPS |
| path: /healthz |
| port: https |
| volumeMounts: |
| - name: certs |
| mountPath: /tls |
| readOnly: true |
| resources: |
| {{- toYaml .Values.resources | nindent 12 }} |
| volumes: |
| - name: certs |
| secret: |
| secretName: {{ include "godaddy-webhook.servingCertificate" . }} |
| {{- with .Values.nodeSelector }} |
| nodeSelector: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |
| {{- with .Values.affinity }} |
| affinity: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |
| {{- with .Values.tolerations }} |
| tolerations: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |