github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/keycloak/templates/NOTES.txt (about)

     1  ***********************************************************************
     2  *                                                                     *
     3  *                Keycloak.X Helm Chart by codecentric AG              *
     4  *                                                                     *
     5  ***********************************************************************
     6  
     7  {{- if .Values.ingress.enabled }}
     8  
     9  Keycloak was installed with an Ingress and an be reached at the following URL(s):
    10  {{ range $unused, $rule := .Values.ingress.rules }}
    11    {{- range $rule.paths }}
    12    - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ tpl $rule.host $ }}{{ .path }}
    13    {{-  end }}
    14  {{- end }}
    15  
    16  {{- else if eq "NodePort" .Values.service.type }}
    17  
    18  Keycloak was installed with a Service of type NodePort.
    19  {{ if .Values.service.httpNodePort }}
    20  Get its HTTP URL with the following commands:
    21  
    22  export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} service {{ include "keycloak.fullname" . }}-http --template='{{"{{ range .spec.ports }}{{ if eq .name \"http\" }}{{ .nodePort }}{{ end }}{{ end }}"}}')
    23  export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
    24  echo "http://$NODE_IP:$NODE_PORT"
    25  {{- end }}
    26  {{ if .Values.service.httpsNodePort }}
    27  Get its HTTPS URL with the following commands:
    28  
    29  export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} service {{ include "keycloak.fullname" . }}-http --template='{{"{{ range .spec.ports }}{{ if eq .name \"https\" }}{{ .nodePort }}{{ end }}{{ end }}"}}')
    30  export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
    31  echo "http://$NODE_IP:$NODE_PORT"
    32  {{- end }}
    33  
    34  {{- else if eq "LoadBalancer" .Values.service.type }}
    35  
    36  Keycloak was installed with a Service of type LoadBalancer
    37  
    38  NOTE: It may take a few minutes for the LoadBalancer IP to be available.
    39       You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} service -w {{ include "keycloak.fullname" . }}'
    40  
    41  Get its HTTP URL with the following commands:
    42  
    43  export SERVICE_IP=$(kubectl get service --namespace {{ .Release.Namespace }} {{ include "keycloak.fullname" . }}-http --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
    44  echo "http://$SERVICE_IP:{{ .Values.service.httpPort }}"
    45  
    46  Get its HTTPS URL with the following commands:
    47  
    48  export SERVICE_IP=$(kubectl get service --namespace {{ .Release.Namespace }} {{ include "keycloak.fullname" . }}-http --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
    49  echo "http://$SERVICE_IP:{{ .Values.service.httpsPort }}"
    50  
    51  {{- else if eq "ClusterIP" .Values.service.type }}
    52  
    53  Keycloak was installed with a Service of type ClusterIP
    54  
    55  Create a port-forwarding with the following commands:
    56  
    57  export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "keycloak.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o name)
    58  echo "Visit http://127.0.0.1:8080 to use your application"
    59  kubectl --namespace {{ .Release.Namespace }} port-forward "$POD_NAME" 8080
    60  
    61  {{- end }}