apiVersion: v1 kind: Service metadata: name: {{ include "kuma.controlPlane.serviceName" . }} namespace: {{ .Release.Namespace }} labels: {{- include "kuma.labels" . | nindent 4 }} annotations: prometheus.io/scrape: "true" prometheus.io/port: "5680" {{- range $key, $value := .Values.controlPlane.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: type: {{ .Values.controlPlane.service.type }} ports: - port: 5681 name: http-api-server - port: 5682 name: https-api-server - port: 443 name: https-admission-server targetPort: 5443 {{- if ne .Values.controlPlane.mode "global" }} - port: 5676 name: mads-server - port: 5678 name: dp-server - port: 5653 name: dns-server protocol: UDP {{- end }} selector: app: {{ include "kuma.name" . }}-control-plane {{- include "kuma.selectorLabels" . | nindent 4 }}