{{- $name := .Values.fullnameOverride | default "redis" -}} # ClusterIP only. Nothing outside the cluster should reach Redis, and there # is no Ingress here on purpose — Contour terminates HTTP, and exposing # Redis's wire protocol through it is neither possible nor wanted. # # Consumers address this as: # {{ $name }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.port }} apiVersion: v1 kind: Service metadata: name: {{ $name }} namespace: {{ .Release.Namespace }} labels: app: {{ $name }} spec: type: ClusterIP selector: app: {{ $name }} ports: - name: redis port: {{ .Values.service.port }} targetPort: redis protocol: TCP