{{- if .Values.service.create -}} --- apiVersion: v1 kind: Service metadata: name: {{ template "instana-agent.fullname" . }}-headless namespace: {{ .Release.Namespace }} labels: {{- include "instana-agent.commonLabels" . | nindent 4 }} spec: clusterIP: None selector: {{- include "instana-agent.selectorLabels" . | nindent 4 }} ports: # Prometheus remote_write, Trace Web SDK and other APIs - name: agent-apis protocol: TCP port: 42699 targetPort: 42699 - name: agent-socket protocol: TCP port: 42666 targetPort: 42666 {{- end -}}