github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-adapter/templates/service.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    {{- if or .Values.service.annotations .Values.customAnnotations }}
     5    annotations:
     6    {{- if .Values.service.annotations }}
     7    {{ toYaml .Values.service.annotations | indent 4 }}
     8    {{- end }}
     9    {{- if .Values.customAnnotations }}
    10    {{- toYaml .Values.customAnnotations | nindent 4 }}
    11    {{- end }}
    12    {{- end }}
    13    labels:
    14      {{- include "k8s-prometheus-adapter.labels" . | indent 4 }}
    15    name: {{ template "k8s-prometheus-adapter.fullname" . }}
    16    namespace: {{ include "k8s-prometheus-adapter.namespace" . }}
    17  spec:
    18    ports:
    19    - port: {{ .Values.service.port }}
    20      protocol: TCP
    21      targetPort: https
    22    selector:
    23      {{- include "k8s-prometheus-adapter.selectorLabels" . | indent 4 }}
    24    type: {{ .Values.service.type }}
    25    {{- if .Values.service.clusterIP }}
    26    clusterIP: {{ .Values.service.clusterIP }}
    27    {{- end }}