# Headless service apiVersion: v1 kind: Service metadata: name: {{ include "keydb.fullname" . }}-headless labels: {{- include "keydb.labels" . | nindent 4 }} annotations: {{- toYaml .Values.service.annotations | nindent 4 }} spec: type: ClusterIP clusterIP: None ports: - name: {{ .Values.portName | quote }} port: {{ .Values.port | int }} protocol: TCP targetPort: {{ .Values.internalPortName | quote }} {{- if .Values.service.appProtocol.enabled }} appProtocol: redis {{- end }} selector: {{- include "keydb.selectorLabels" . | nindent 4 }}