charts/coms/templates/service.yaml
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "coms.fullname" . }}
labels:
{{- include "coms.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- name: {{ .Values.service.portName }}
port: {{ .Values.service.port }}
protocol: TCP
targetPort: {{ .Values.service.port }}
selector:
{{- include "coms.selectorLabels" . | nindent 4 }}