sigs.k8s.io/cluster-api-provider-azure@v1.14.3/hack/observability/opentelemetry/chart/templates/service.yaml (about)

     1  {{- if .Values.standaloneCollector.enabled -}}
     2  apiVersion: v1
     3  kind: Service
     4  metadata:
     5    name: {{ include "opentelemetry-collector.fullname" . }}
     6    labels:
     7      {{- include "opentelemetry-collector.labels" . | nindent 4 }}
     8      component: standalone-collector
     9    {{- if .Values.service.annotations }}
    10    annotations:
    11      {{ toYaml .Values.service.annotations | nindent 4 }}
    12    {{- end }}
    13  spec:
    14    type: {{ .Values.service.type }}
    15    {{- if .Values.service.clusterIP }}
    16    clusterIP: {{ .Values.service.clusterIP }}
    17    {{- end }}
    18    ports: {{ include "opentelemetry-collector.standalonePortsConfig" . | nindent 4 }}
    19    selector:
    20      {{- include "opentelemetry-collector.selectorLabels" . | nindent 4 }}
    21      component: standalone-collector
    22  {{- end }}