helm-charts/concourse/templates/web-svc.yaml

27 строки
879 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ template "concourse.web.fullname" . }}
labels:
app: {{ template "concourse.web.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
type: {{ .Values.web.service.type }}
ports:
- name: atc
port: {{ .Values.concourse.atcPort }}
targetPort: atc
{{ if and (eq "NodePort" .Values.web.service.type) .Values.web.service.atcNodePort }}
nodePort: {{ .Values.web.service.atcNodePort}}
{{ end }}
- name: tsa
port: {{ .Values.concourse.tsaPort }}
targetPort: tsa
{{ if and (eq "NodePort" .Values.web.service.type) .Values.web.service.tsaNodePort }}
nodePort: {{ .Values.web.service.tsaNodePort}}
{{ end }}
selector:
app: {{ template "concourse.web.fullname" . }}