DEV Community

Cover image for Kubernetes series (Part 2): Installing Kubernetes dependencies
Shahriyar Al Mustakim Mitul
Shahriyar Al Mustakim Mitul

Posted on

Kubernetes series (Part 2): Installing Kubernetes dependencies

Install Kubernetes

On Windows:
Install Docker Desktop:

Image description

and then enable Kubernetes from settings

Image description

If you don't find kubernetes settings, switch to linux containers

Image description

If you have Windows (10), install minikube & then install kubectl

Image description

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:

Image description

*For linux hosts and VM *

install MicroK8s or from here

  • Install Kubectl if you are a Windows user

Image description

You have to add additional commands to enable core dns & kubectl which are generally done by Docker desktop on windows & macos

Image description

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)