?
R
BashRecipe for snipping off k8s via MiniKube on a Mac. Includes configuring kubectl to use the MiniKube cluster. Kubectl can speak to minikube local cluster or any other cluster on the cloud. Requirements: brew package manager Docs: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-back-a-deployment
1# Minikube Instalation (1.10)
2brew update
3brew install kubectl
4kubectl version --client
5brew cask install minikube
6brew install docker-machine-driver-xhyve
7# This driver requires superuser privileges to access the hypervisor.
8sudo chown root:wheel /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
9sudo chmod u+s /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
10#Note: Please consider switching to the hyperkit driver, which is intended to replace the xhyve driver.
11# Start Minikube
12minikube start --vm-driver=xhyve
13kubectl config current-context
14kubectl get nodes
15minikube stop
16minikube delete
17minikube start --vm-driver=xhyve --kubernetes-version="v1.6.0"
18kubectl get nodes
19minikube dashboard
20# http://192.168.64.3:30000/#!/overview?namespace=default
21minikube status
Created on 10/5/2017