poire.dev/abitibi/chart/abitibi/templates/service.yaml
2020-12-04 23:21:17 -05:00

19 lines
500 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "abitibi.fullname" . }}
labels:
{{ include "abitibi.labels" . | indent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
{{- if (eq .Values.service.type "ClusterIP") }}
nodePort: null
{{- end }}
selector:
app.kubernetes.io/name: {{ include "abitibi.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}