charts/library/common/templates/_service.yaml

16 lines
336 B
YAML

{{ define "common.service" }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.common.fullname }}
spec:
selector:
{{- include "common.selectorLabels" . | nindent 6 }}
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
{{- end }}