apiVersion: v1 kind: Service metadata: name: {{ include "flask.fullname" . }} labels: app.kubernetes.io/name: {{ include "flask.name" . }} helm.sh/chart: {{ include "flask.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- with .Values.service.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} targetPort: {{ .Values.service.targetPort }} protocol: TCP name: http selector: app.kubernetes.io/name: {{ include "flask.name" . }} app.kubernetes.io/instance: {{ .Release.Name }}