apiVersion: v1 kind: Service metadata: labels: app: {{ include "confluent-operator.name" . }} app.kubernetes.io/name: {{ include "confluent-operator.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: "confluent-operator" helm.sh/chart: {{ include "confluent-operator.chart" . }} name: confluent-operator namespace: {{ .Release.Namespace }} spec: ports: - name: http-metric port: 7778 protocol: TCP targetPort: 7778 {{- if (.Values.webhooks.enabled) }} - name: webhook port: {{ .Values.webhooks.port }} protocol: TCP targetPort: {{ .Values.webhooks.port }} {{- end }} selector: app: "confluent-operator" app.kubernetes.io/name: "confluent-operator" type: ClusterIP