Getting started with Kubernetes for local development. I develop on a Mac however much of this is easily translated to windows.
The following is primarily a getting started guide wrapped around my personal development notes. This set of notes are specifically for my co-workers in helping them get up to speed quickly. If you see an error feel free to make a pull request or just add an issue.
Contents
Deeper Reading and Resources
Free Courses
Paid Courses
Prerequisites
Test Installation
$ minikube version
minikube version: v0.25.0
$ minikube start
Starting local Kubernetes v1.9.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Loading cached images from config file.
$ minikube addons list
- addon-manager: enabled
- coredns: disabled
- dashboard: enabled
- default-storageclass: enabled
- efk: disabled
- freshpod: disabled
- heapster: disabled
- ingress: disabled
- kube-dns: enabled
- registry: disabled
- registry-creds: disabled
- storage-provisioner: enabled
# enable heapster for CPU and mem
$ minikube addons enable heapster
heapster was successfully enabled
# open the dashboard (in a browser)
$ minikube dashboard
Get some status
# are we running a cluster?
$ kubectl cluster-info
Kubernetes master is running at https://192.168.99.100:8443
# we should have a minikube node
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready <none> 2d v1.9.0
Architecture
Read Kubernetes Basics for a better understanding.