apiVersion: v1
kind: Service
metadata:
  name: {{ .Release.Name }}-agent-core
  labels:
    app: agent-core
    {{ include "label_prefix" . }}/release: {{ .Release.Name }}
    {{ include "label_prefix" . }}/version: {{ .Chart.Version }}
spec:
  selector:
    app: agent-core
    {{ include "label_prefix" . }}/release: {{ .Release.Name }}
  ports:
    - name: grpc
      port: 50051
    - name: ha-cluster
      port: 50052
