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 }}