apiVersion: v1
kind: Service
metadata:
  name: {{ include "pcp-coverage-scheme-service.fullname" . }}
  labels:
    {{- include "pcp-coverage-scheme-service.labels" . | nindent 4 }}
spec:
  type: {{ .Values.service.type }}
  selector:
    app.kubernetes.io/name: {{ include "pcp-coverage-scheme-service.name" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
  ports:
    - name: http
      port: {{ .Values.service.port }}
      targetPort: http
      protocol: TCP
