charts/dgrsc/templates/service.yaml
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "dgrsc.fullname" . }}
labels:
{{- include "dgrsc.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 "dgrsc.selectorLabels" . | nindent 4 }}