examples/operator/templates/metrics-service.yaml
apiVersion: v1
kind: Service
metadata:
name: {{ include "operator.fullname" . }}-controller-manager-metrics-service
labels:
control-plane: controller-manager
{{- include "operator.labels" . | nindent 4 }}
spec:
type: {{ .Values.metricsService.type }}
selector:
control-plane: controller-manager
{{- include "operator.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.metricsService.ports | toYaml | nindent 2 }}