From 3935fd70e743931e6322bf088cd3e1c866f2e2cd Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Mon, 29 Apr 2019 17:55:26 +0100 Subject: Update Helm chart and Dockerfile Signed-off-by: James Munnelly --- deploy/example-webhook/templates/deployment.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'deploy/example-webhook/templates/deployment.yaml') diff --git a/deploy/example-webhook/templates/deployment.yaml b/deploy/example-webhook/templates/deployment.yaml index 4ae5220..fc0acbd 100644 --- a/deploy/example-webhook/templates/deployment.yaml +++ b/deploy/example-webhook/templates/deployment.yaml @@ -19,22 +19,28 @@ spec: app: {{ include "example-webhook.name" . }} release: {{ .Release.Name }} spec: + serviceAccountName: {{ include "example-webhook.fullname" . }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + env: + - name: GROUP_NAME + value: {{ .Values.groupName | quote }} ports: - - name: http - containerPort: 80 + - name: https + containerPort: 443 protocol: TCP livenessProbe: httpGet: - path: / - port: http + scheme: HTTPS + path: /healthz + port: https readinessProbe: httpGet: - path: / - port: http + scheme: HTTPS + path: /healthz + port: https resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} -- cgit v1.2.3