Install Kubernetes
On Windows:
Install Docker Desktop:
and then enable Kubernetes from settings
If you don't find kubernetes settings, switch to linux containers
If you have Windows (10), install minikube & then install kubectl
Tips for installing minikube:
-
minikube defaults to installing the latest Kubernetes release, but you likely don't want that, since it's 6-12 months before many clouds and enterprise solutions update to recent versions. You can look up versions on GitHub, and install a specific version like this minikube start --kubernetes-version='1.17.4'
- Unlike Docker Desktop, which lets you use localhost for your Kubernetes services, minikube runs in VirtualBox (by default) and has its own IP. Find that with minikube ip
Remember top stop minikube when you're not using it to save resources minikube stop
Check the status of what is running in minikube with minikube status
On MacOs:
Install Docker Desktop & enable kubernetes:
*For linux hosts and VM *
- Install Kubectl if you are a Windows user
You have to add additional commands to enable core dns & kubectl which are generally done by Docker desktop on windows & macos
Tips:
MicroK8s defaults to installing the latest Kubernetes release, but you likely don't want that, since it's 6-12 months before many clouds and enterprise solutions update to recent versions. You can look up versions on GitHub, and install a specific version like this
sudo snap install microk8s --classic --channel=1.17/stable
Before using it, you'll need to enable the CoreDNS pod so it'll resolve service DNS names later:
microk8s.enable dns
Check the status of what is running in MicroK8s with
microk8s.status
You may also use this website to learn Kubernetes
Top comments (0)