apiVersion: v1
kind: Service
metadata:
  name: {{ include "capsule.fullname" . }}-webhook-service
  labels:
    {{- include "capsule.labels" . | nindent 4 }}
  {{- with .Values.customAnnotations }}
  annotations:
   {{- toYaml . | nindent 4 }}
  {{- end }}
spec:
  ports:
  - port: 443
    name: https
    protocol: TCP
    targetPort: {{ .Values.manager.webhookPort }}
  selector:
    {{- include "capsule.selectorLabels" . | nindent 4 }}
  sessionAffinity: None
  type: ClusterIP
