thirdparty-ops-docker-helm/charts/opal/templates/service.yaml

18 lines
508 B
YAML
Raw Normal View History

2018-10-23 21:22:53 +02:00
apiVersion: v1
kind: Service
metadata:
2018-11-06 17:19:54 +01:00
name: "{{ .Release.Name }}-{{ .Values.service.name }}"
2018-10-23 21:22:53 +02:00
labels:
2018-11-06 17:19:54 +01:00
app: "{{ .Release.Name }}-{{ .Values.service.name }}"
2018-10-23 21:22:53 +02:00
chart: {{ template "opal.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: {{ .Values.service.type }}
ports:
2018-11-06 17:19:54 +01:00
- name: "{{ .Release.Name }}-{{ .Values.service.name }}"
2018-10-23 21:22:53 +02:00
port: {{ .Values.service.port }}
selector:
app: {{ template "opal.name" . }}
release: {{ .Release.Name }}