apiVersion: v1
kind: Service
metadata:
  name: {{ include "consentos.fullname" . }}-api
  labels:
    {{- include "consentos.labels" . | nindent 4 }}
    app.kubernetes.io/component: api
spec:
  type: {{ .Values.api.service.type }}
  ports:
    - port: {{ .Values.api.service.port }}
      targetPort: http
      protocol: TCP
      name: http
  selector:
    {{- include "consentos.selectorLabels" (dict "Chart" .Chart "Release" .Release "component" "api") | nindent 4 }}
