--- apiVersion: v1 kind: Service metadata: name: {{ .Release.Name }} labels: app.kubernetes.io/name: {{ .Values.appName }} app.kubernetes.io/instance: {{ .Release.Name }} spec: ports: - protocol: TCP port: {{ .Values.port }} targetPort: {{ .Values.port }} selector: app.kubernetes.io/instance: {{ .Release.Name }}