apiVersion: v1 kind: Service metadata: name: {{ include "go-loose.fullname" . }} labels: {{- include "go-loose.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} # ClusterIP for internal service discovery ports: - port: {{ .Values.service.port }} targetPort: http # Must match the containerPort in deployment.yaml protocol: TCP name: http selector: {{- include "go-loose.selectorLabels" . | nindent 4 }}