Minikube how to¶
minikube update-check
# install new version
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64
sudo install minikube-darwin-amd64 /usr/local/bin/minikube
Personal script is ~/bin/ministart
, amy take some time if it downloads new VM image.
- Retrieve all Kubernetes context (they are saved in
~/bin/.kube/config
)
- Change kubectl context between openshift and minikube:
kubectl config use-context minikube
kubectl config use-context default/c117-e-us-south-containers-cloud-ibm-com:31580/IAM#boyerje@us.ibm.com
# same with
kubectx minikube
- Retrieve the nodes:
- Add the metric server to the minikube cluster
- Dashboard UI
Use docker CLI to build image¶
- Install docker CLI
- Expose the Docker daemon from minikube to the local terminal environment.
- Enable docker local daemon to push images to minikube registry
- Build a quarkus app and deploy it to minikube
- Get the service and app url:
- Deploy an existing app
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4
kubectl expose deployment hello-minikube --type=NodePort --port=8080
- Build docker image