soniya.rayabagi
Mon Apr 08 2024
Kubernetes on Docker Desktop
• Install Docker Desktop
• Enable Kubernetes from docker-desktop setting
• Switch the Kubernetes context to docker-desktop
• Example :
• Instead of using the command
• To install kubectx on Mac:
#devops #kubernetes #dockerdesktop
• Install Docker Desktop
• Enable Kubernetes from docker-desktop setting
• Switch the Kubernetes context to docker-desktop
• Example :
❯ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
docker-desktop docker-desktop docker-desktop
* kind-kube-nginx-cluster kind-kube-nginx-cluster kind-kube-nginx-cluster
❯ kubectl config use-context docker-desktop
Switched to context "docker-desktop".
• Instead of using the command
kubectl config use-context docker-desktop
we can also go with kubectx
to switch between Kubernetes context• To install kubectx on Mac:
brew install kubectx
#devops #kubernetes #dockerdesktop