apiVersion: v1 kind: Service metadata: name: {{ .Release.Name }}-cluster-agent namespace: {{ .Release.Namespace }} labels: {{ include "stackstate-k8s-agent.labels" . | indent 4 }} {{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }} app.kubernetes.io/component: cluster-agent annotations: {{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }} spec: ports: - name: clusteragent port: {{int .Values.clusterAgent.service.port }} protocol: TCP targetPort: {{int .Values.clusterAgent.service.targetPort }} selector: app.kubernetes.io/component: cluster-agent app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/name: {{ include "stackstate-k8s-agent.name" . }}