github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/keycloak/templates/service-headless.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: {{ include "keycloak.fullname" . }}-headless
     5    namespace: {{ .Release.Namespace }}
     6    {{- with .Values.serviceHeadless.annotations }}
     7    annotations:
     8      {{- range $key, $value := . }}
     9      {{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
    10      {{- end }}
    11    {{- end }}
    12    labels:
    13      {{- include "keycloak.labels" . | nindent 4 }}
    14      app.kubernetes.io/component: headless
    15  spec:
    16    type: ClusterIP
    17    clusterIP: None
    18    ports:
    19      - name: http
    20        port: {{ .Values.service.httpPort }}
    21        targetPort: http
    22        protocol: TCP
    23    selector:
    24      {{- include "keycloak.selectorLabels" . | nindent 4 }}