Skip to content

Latest commit

 

History

History
77 lines (65 loc) · 1.8 KB

K8s.md

File metadata and controls

77 lines (65 loc) · 1.8 KB

Setup Kubernetes tools

Minikube

Official documentation 🗗

Prerequisites

Operating system must have access to a Hypervisor

Installation

Windows:

Install minikube

\> choco install minikube
When using Hyper-V:

Follow this guide 🗗 or in short:

  1. Create external virtual switch named "Kubernetes Virtual Switch".
  2. Disable IPv6 on all relevant network adapters.
  3. Create the kubernetes cluster using hyperv and the newly created
\> minikube start --vm-driver=hyperv --hyperv-virtual-switch="Kubernetes Virtual Switch" --cpus=3 --memory=4096

If anything still doesn't work; disable dynamic memory in Hyper-V.

Linux:

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

MacOS:

$ brew cask install minikube

Kubectl

Official documentation 🗗

Installation

Windows:

\> choco install kubernetes-cli

Linux:

MacOS:

homebrew install kubectl

Heapster, InfluxDB, Grafana

On minikube, enable addons:

$ minikube addons enable heapster

Wait for it to be up

$ kubectl get pods --namespace=kube-system --watch

Then open the dashboard using Grafana Dashboard

$ kubectl addons open heapster

Helm & Tiller

Install Helm

Windows
choco install kubernetes-helm
MacOS
brew install kubernetes-helm
Linux

download from https://github.com/kubernetes/helm/releases 🗗