github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/thanos/templates/storegateway/service-headless.yaml (about) 1 {{- if and (.Values.storegateway.enabled) (.Values.storegateway.service.additionalHeadless) -}} 2 apiVersion: v1 3 kind: Service 4 metadata: 5 name: {{ include "common.names.fullname" . }}-storegateway-headless 6 namespace: {{ .Release.Namespace | quote }} 7 labels: {{- include "common.labels.standard" . | nindent 4 }} 8 app.kubernetes.io/component: storegateway 9 {{- if .Values.commonLabels }} 10 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 11 {{- end }} 12 {{- if .Values.commonAnnotations }} 13 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 14 {{- end }} 15 spec: 16 type: ClusterIP 17 clusterIP: None 18 ports: 19 - port: {{ if .Values.storegateway.service.http }}{{ coalesce .Values.storegateway.service.ports.http .Values.storegateway.service.http.port }}{{ else }}{{ .Values.storegateway.service.ports.http }}{{ end }} 20 targetPort: http 21 protocol: TCP 22 name: http 23 - port: {{ if .Values.storegateway.service.grpc }}{{ coalesce .Values.storegateway.service.ports.grpc .Values.storegateway.service.grpc.port }}{{ else }}{{ .Values.storegateway.service.ports.grpc }}{{ end }} 24 targetPort: grpc 25 protocol: TCP 26 name: grpc 27 selector: {{- include "common.labels.matchLabels" . | nindent 4 }} 28 app.kubernetes.io/component: storegateway 29 {{- end }}