rancher-partner-charts/charts/instana/instana-agent/templates/headless-service.yaml

39 lines
1.1 KiB
YAML

{{- 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
{{ if eq "true" (include "instana-agent.opentelemetry.grpc.isEnabled" .) }}
# OpenTelemetry original default port
- name: opentelemetry
protocol: TCP
port: 55680
targetPort: 55680
# OpenTelemetry as registered and reserved by IANA
- name: opentelemetry-iana
protocol: TCP
port: 4317
targetPort: 4317
{{- end -}}
{{ if eq "true" (include "instana-agent.opentelemetry.http.isEnabled" .) }}
# OpenTelemetry HTTP port
- name: opentelemetry-http
protocol: TCP
port: 4318
targetPort: 4318
{{- end -}}
{{- end -}}