Helm/Keycloak: Difference between revisions
Jump to navigation
Jump to search
Line 140: | Line 140: | ||
| valign="top" | | | valign="top" | | ||
* [https://stackoverflow.com/questions/75596795/ Helm » Pass YAML/JSON using <code>stdin</code>] | * [https://stackoverflow.com/questions/75596795/ Helm » Pass YAML/JSON using <code>stdin</code>] | ||
* [[Helm/Prometheus Stack|Helm » Prometheus Stack]] | |||
* [[Helm/Cert Manager|Helm » Cert Manager]] | |||
* [https://artifacthub.io/packages/helm/bitnami/keycloak Helm » Keycloak] | * [https://artifacthub.io/packages/helm/bitnami/keycloak Helm » Keycloak] | ||
* [[Helm]] | * [[Helm]] |
Revision as of 20:38, 31 July 2024
helm pull oci://registry-1.docker.io/bitnamicharts/keycloak --version 22.0.0 --untar helm pull oci://registry-1.docker.io/bitnamicharts/keycloak --version 19.3.3 --untar helm pull oci://registry-1.docker.io/bitnamicharts/keycloak --untar
helm pull oci://registry-1.docker.io/bitnamicharts/keycloak --version 22.0.0 helm pull oci://registry-1.docker.io/bitnamicharts/keycloak --version 19.3.3 helm pull oci://registry-1.docker.io/bitnamicharts/keycloak
Config
export KUBECONFIG="${HOME}/.kube/dev-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/gcp-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/config"
Install
kubectl create namespace keycloak
helm show values oci://registry-1.docker.io/bitnamicharts/keycloak --version 19.3.3|less
cat <<YML | helm install -n keycloak keycloak oci://registry-1.docker.io/bitnamicharts/keycloak --version 19.3.3 -f -
tls:
enabled: false
auth:
adminUser: admin
adminPassword: "sadaqah!"
ingress:
enabled: true
hostname: keycloak.k8s.local
ingressClassName: nginx
postgresql:
enabled: true
auth:
username: keycloak
password: "sadaqah!"
database: keycloak
postgresPassword: "sadaqah!"
architecture: standalone
YML
| |
| |
xdg-open http://keycloak.k8s.local &>/dev/null &
gnome-open http://keycloak.k8s.local &>/dev/null &
|
x-www-browser http://keycloak.k8s.local &>/dev/null &
sensible-browser http://keycloak.k8s.local &>/dev/null &
|
Uninstall
helm uninstall -n keycloak keycloak
kubectl delete namespace keycloak
Playground
helm install -n keycloak keycloak oci://registry-1.docker.io/bitnamicharts/keycloak --version 19.3.3
helm upgrade -n keycloak -i keycloak oci://registry-1.docker.io/bitnamicharts/keycloak --version 22.0.0
helm show values oci://registry-1.docker.io/bitnamicharts/keycloak --version 19.3.3|less
| |
| |
kubectl exec -n keycloak -it svc/keycloak -c keycloak -- ls -lah /var|grep keycloak
kubectl exec -n keycloak -it svc/keycloak -c keycloak -- ls -lah /var
kubectl exec -n keycloak -it svc/keycloak -c keycloak -- bash
kubectl exec -n keycloak -it keycloak-postgresql-0 -- bash
| |
| |
kubectl config --kubeconfig=${HOME}/.kube/aws-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/dev-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/gcp-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/config view --flatten
| |
| |
kubectl delete all --all -n keycloak
kubectl delete ing --all -n keycloak
kubectl delete sts --all -n keycloak
|
kubectl delete svc --all -n keycloak
kubectl delete pvc --all -n keycloak
kubectl delete pv --all -n keycloak
|
| |
kubectl rollout history sts keycloak -n keycloak
kubectl rollout restart sts keycloak -n keycloak
kubectl rollout status sts keycloak -n keycloak
|
kubectl exec -n keycloak -it keycloak-postgresql-0 -- psql -Ukeycloak
kubectl logs -n keycloak -f keycloak-postgresql-0
kubectl logs -n keycloak -f keycloak-0
|
References
| ||
| ||