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>
117 lines
3.3 KiB
YAML
117 lines
3.3 KiB
YAML
{{- $ingress := .Values.ingress -}}
|
|
{{- if $ingress.enabled -}}
|
|
{{- $apiVersion := "networking.k8s.io/v1" -}}
|
|
{{- $fullName := ( include "keycloak.fullname" . ) -}}
|
|
apiVersion: {{ $apiVersion }}
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ $fullName }}
|
|
namespace: {{ include "keycloak.namespace" . }}
|
|
{{- with $ingress.annotations }}
|
|
annotations:
|
|
{{- range $key, $value := . }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "keycloak.labels" . | nindent 4 }}
|
|
{{- range $key, $value := $ingress.labels }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if $ingress.ingressClassName }}
|
|
ingressClassName: {{ $ingress.ingressClassName }}
|
|
{{- end }}
|
|
{{- if $ingress.tls }}
|
|
tls:
|
|
{{- range $ingress.tls }}
|
|
- hosts:
|
|
{{- range .hosts }}
|
|
- {{ tpl . $ | quote }}
|
|
{{- end }}
|
|
{{- with .secretName }}
|
|
secretName: {{ tpl . $ }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range .Values.ingress.rules }}
|
|
- host: {{ tpl .host $ | quote }}
|
|
http:
|
|
paths:
|
|
{{- range .paths }}
|
|
- path: {{ tpl .path $ | quote }}
|
|
pathType: {{ .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ default (printf "%s-http" $fullName) (.serviceName) }}
|
|
port:
|
|
name: {{ default ($ingress.servicePort) (.servicePort) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if $ingress.console.enabled }}
|
|
---
|
|
apiVersion: {{ $apiVersion }}
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ $fullName }}-console
|
|
namespace: {{ include "keycloak.namespace" . }}
|
|
{{- with $ingress.console.annotations }}
|
|
annotations:
|
|
{{- range $key, $value := . }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "keycloak.labels" . | nindent 4 }}
|
|
{{- range $key, $value := $ingress.labels }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
{{- range $key, $value := $ingress.console.labels }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if $ingress.console.ingressClassName }}
|
|
ingressClassName: {{ $ingress.console.ingressClassName }}
|
|
{{- end }}
|
|
{{- if $ingress.console.tls }}
|
|
tls:
|
|
{{- range $ingress.console.tls }}
|
|
- hosts:
|
|
{{- range .hosts }}
|
|
- {{ tpl . $ | quote }}
|
|
{{- end }}
|
|
{{- with .secretName }}
|
|
secretName: {{ tpl . $ }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{ else if $ingress.tls }}
|
|
tls:
|
|
{{- range $ingress.tls }}
|
|
- hosts:
|
|
{{- range .hosts }}
|
|
- {{ tpl . $ | quote }}
|
|
{{- end }}
|
|
{{- with .secretName }}
|
|
secretName: {{ tpl . $ }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range .Values.ingress.console.rules }}
|
|
- host: {{ tpl .host $ | quote }}
|
|
http:
|
|
paths:
|
|
{{- range .paths }}
|
|
- path: {{ tpl .path $ | quote }}
|
|
pathType: {{ .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ default (printf "%s-http" $fullName) (.serviceName) }}
|
|
port:
|
|
name: {{ default ($ingress.servicePort) (.servicePort) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- end -}}
|