Skip to content

phowells/custom-keycloak-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom-keycloak-image

Minikube Setup on Macbook Air

https://devopscube.com/minikube-mac/

Starting Minikube in MacOs

We need to blow away the minikube config before restarting due to firewall restrictions that cannot be updated.

minikube stop
minikube delete
brew uninstall minikube
rm -rf ~/.minikube
sudo brew services stop socket_vmnet
brew uninstall socket_vmnet
sudo rm -rf /opt/homebrew/Cellar/socket_vmnet/1.1.4
brew uninstall qemu

Restart Computer...

brew install qemu
brew install socket_vmnet
brew tap homebrew/services
HOMEBREW=$(which brew) && sudo ${HOMEBREW} services start socket_vmnet
brew install minikube
minikube start --driver qemu --network socket_vmnet
minikube status

Configure Ingress with Self -Signed Cert

https://supportportal.juniper.net/s/article/Generate-a-self-signed-SSL-certificate-in-PEM-format-using-OpenSSL?language=en_US
Generate the Key in the 'helm' directory of the project

openssl genrsa -aes256 -out encrypted-key.pem

Remove the password

openssl rsa -in encrypted-key.pem -out key.pem

Generate the certificate

openssl req -new -x509 -key key.pem -out cert.pem -days 1095

https://minikube.sigs.k8s.io/docs/tutorials/custom_cert_ingress/
Create TLS secret which contains custom certificate and private key

kubectl -n kube-system create secret tls mkcert --key key.pem --cert cert.pem

Configure ingress addon

minikube addons configure ingress
-- Enter custom cert (format is "namespace/secret"): kube-system/mkcert
✅ ingress was successfully configured

Enable ingress addon (disable first when already enabled)

minikube addons disable ingress
minikube addons enable ingress

Verify if custom certificate was enabled

kubectl -n ingress-nginx get deployment ingress-nginx-controller -o yaml | grep "kube-system"
--default-ssl-certificate=kube-system/mkcert

Configure Minikube to use Red Hat Private Registry

minikube addons configure registry-creds

Update custom-keycloak-ingress.yaml with minikube ip.

minikube ip

Deploy to Kubernetes

kubectl apply -f custom-keycloak.yaml
kubectl apply -f custom-keycloak-ingress.yaml

Access Admin Console

KEYCLOAK_URL=https://custom-keycloak.$(minikube ip).nip.io && echo "" && echo "Keycloak: $KEYCLOAK_URL" && echo "Keycloak Admin Console: $KEYCLOAK_URL/admin" && echo "Keycloak Account Console: $KEYCLOAK_URL/realms/myrealm/account" && echo ""

Restart Keycloak

kubectl rollout restart deployment custom-keycloak

Keycloak SAML Chaining Video

https://www.youtube.com/watch?v=JBAKnJ9Obvw

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages