https://devopscube.com/minikube-mac/
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
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
minikube addons configure registry-creds
minikube ip
kubectl apply -f custom-keycloak.yaml
kubectl apply -f custom-keycloak-ingress.yaml
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 ""
kubectl rollout restart deployment custom-keycloak