611e971295
codecentric/keycloak(18.4.0, WildFly 기반, appVersion 17.0.1-legacy)이 bitnami/postgresql 서브차트를 조건부 의존성으로 포함해 bitnami 무료 배포 정책 변경 문제가 그대로 전이됐다. codecentric은 이 WildFly 차트를 더 이상 갱신하지 않고 Quarkus 기반 Keycloak(17+)용 별도 차트 keycloakx를 제공하며, keycloakx는 서브차트 의존성이 전혀 없어(Chart.yaml에 dependencies 없음) 문제가 근본적으로 해소된다. 실제 소비자가 없어(문서 예시 표 한 줄 외 참조 없음) phased 전환 없이 keycloak/18.4.0을 같은 커밋에서 제거했다. custom-values.yaml 작성 시 확인한 핵심 사항 — 이 차트의 http.relativePath 기본값이 구버전 WildFly Keycloak 호환용 "/auth"라, 명시적으로 "/"로 오버라이드해야 한다(안 하면 OIDC issuer/admin API 경로가 소비 앱들의 경로 접미사 없음 가정과 어긋난다). database.existingSecret/existingSecretKey 로 kubernetes.io/basic-auth 시크릿을 그대로 참조 가능함도 helm template로 확인했다. Closes #1 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
62 lines
3.2 KiB
Plaintext
62 lines
3.2 KiB
Plaintext
***********************************************************************
|
|
* *
|
|
* Keycloak.X Helm Chart by codecentric AG *
|
|
* *
|
|
***********************************************************************
|
|
|
|
{{- if .Values.ingress.enabled }}
|
|
|
|
Keycloak was installed with an Ingress and an be reached at the following URL(s):
|
|
{{ range $unused, $rule := .Values.ingress.rules }}
|
|
{{- range $rule.paths }}
|
|
- http{{ if $.Values.ingress.tls }}s{{ end }}://{{ tpl $rule.host $ }}{{ .path }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- else if eq "NodePort" .Values.service.type }}
|
|
|
|
Keycloak was installed with a Service of type NodePort.
|
|
{{ if .Values.service.httpNodePort }}
|
|
Get its HTTP URL with the following commands:
|
|
|
|
export NODE_PORT=$(kubectl get --namespace {{ include "keycloak.namespace" . }} service {{ include "keycloak.fullname" . }}-http --template='{{"{{ range .spec.ports }}{{ if eq .name \"http\" }}{{ .nodePort }}{{ end }}{{ end }}"}}')
|
|
export NODE_IP=$(kubectl get nodes --namespace {{ include "keycloak.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
|
|
echo "http://$NODE_IP:$NODE_PORT"
|
|
{{- end }}
|
|
{{ if .Values.service.httpsNodePort }}
|
|
Get its HTTPS URL with the following commands:
|
|
|
|
export NODE_PORT=$(kubectl get --namespace {{ include "keycloak.namespace" . }} service {{ include "keycloak.fullname" . }}-http --template='{{"{{ range .spec.ports }}{{ if eq .name \"https\" }}{{ .nodePort }}{{ end }}{{ end }}"}}')
|
|
export NODE_IP=$(kubectl get nodes --namespace {{ include "keycloak.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
|
|
echo "http://$NODE_IP:$NODE_PORT"
|
|
{{- end }}
|
|
|
|
{{- else if eq "LoadBalancer" .Values.service.type }}
|
|
|
|
Keycloak was installed with a Service of type LoadBalancer
|
|
|
|
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
|
You can watch the status of by running 'kubectl get --namespace {{ include "keycloak.namespace" . }} service -w {{ include "keycloak.fullname" . }}'
|
|
|
|
Get its HTTP URL with the following commands:
|
|
|
|
export SERVICE_IP=$(kubectl get service --namespace {{ include "keycloak.namespace" . }} {{ include "keycloak.fullname" . }}-http --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
|
echo "http://$SERVICE_IP:{{ .Values.service.httpPort }}"
|
|
|
|
Get its HTTPS URL with the following commands:
|
|
|
|
export SERVICE_IP=$(kubectl get service --namespace {{ include "keycloak.namespace" . }} {{ include "keycloak.fullname" . }}-http --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
|
echo "http://$SERVICE_IP:{{ .Values.service.httpsPort }}"
|
|
|
|
{{- else if eq "ClusterIP" .Values.service.type }}
|
|
|
|
Keycloak was installed with a Service of type ClusterIP
|
|
|
|
Create a port-forwarding with the following commands:
|
|
|
|
export POD_NAME=$(kubectl get pods --namespace {{ include "keycloak.namespace" . }} -l "app.kubernetes.io/name={{ include "keycloak.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o name)
|
|
echo "Visit http://127.0.0.1:8080 to use your application"
|
|
kubectl --namespace {{ include "keycloak.namespace" . }} port-forward "$POD_NAME" 8080
|
|
|
|
{{- end }}
|