charts/library/common/templates/_service.yaml

16 lines
336 B
YAML
Raw Normal View History

2023-01-03 16:19:01 +00:00
{{ define "common.service" }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.common.fullname }}
spec:
2023-01-08 00:16:53 +00:00
selector:
{{- include "common.selectorLabels" . | nindent 6 }}
2023-01-03 16:19:01 +00:00
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
{{- end }}