From 8637b491a1da14313d773637388d8764bd4ac97e Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Mon, 29 Mar 2021 14:01:49 +0200 Subject: [PATCH] chart: correct port names --- chart/templates/apiserviceservice.yaml | 3 ++- chart/templates/deployment.yaml | 9 ++++++++- chart/templates/service.yaml | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/chart/templates/apiserviceservice.yaml b/chart/templates/apiserviceservice.yaml index fae7f024..eb2da7d9 100644 --- a/chart/templates/apiserviceservice.yaml +++ b/chart/templates/apiserviceservice.yaml @@ -25,7 +25,8 @@ metadata: heritage: "{{ .Release.Service }}" spec: ports: - - port: 443 + - name: apiservice + port: 443 protocol: TCP targetPort: 8443 selector: diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 6c1be84f..ddc0917f 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -23,7 +23,14 @@ spec: terminationGracePeriodSeconds: 10 serviceAccountName: {{ template "kiosk.serviceAccountName" . }} containers: - - command: + - ports: + - name: webhook + containerPort: 9443 + protocol: TCP + - name: apiservice + containerPort: 8443 + protocol: TCP + command: {{- range $f := .Values.kiosk.command }} - {{ $f | quote }} {{- end }} diff --git a/chart/templates/service.yaml b/chart/templates/service.yaml index 06fd150c..3bce0bd6 100644 --- a/chart/templates/service.yaml +++ b/chart/templates/service.yaml @@ -11,10 +11,10 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.service.port }} + - name: webhook + port: {{ .Values.service.port }} targetPort: {{ .Values.service.targetPort }} protocol: TCP - name: http selector: app: {{ template "kiosk.fullname" . }} release: {{ .Release.Name }}