1. Install Minikube $ brew update $ brew install kubectl $ brew cask install minikube 2. Install xhyve $ brew install docker-machine-driver-xhyve 3. Set superuser privileges for xhyve (this appears during installation) $ sudo chown root:wheel /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve $ sudo chmod u+s /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve 4. Start minikube $ minikube start --vm-driver=xhyve 5. Test $ kubectl config current-context minikube 6. Get cluster nodes info $ kubectl get nodes NAME STATUS ROLES AGE VERSION minikube Ready22m v1.8.0 7. Stop cluster $ minikube stop Stopping local Kubernetes cluster... Machine stopped. 8. Delete minikube $ minikube delete Deleting local Kubernetes cluster... Machine deleted. 9. Show available kubernetes versions $ minikube get-k8s-versions The following Kubernetes versions are available when using the localkube bootstrapper: - v1.8.0 - v1.7.5 - v1.7.4 ... 10. Get v1.8.0 $ minikube start --vm-driver=xhyve --kubernetes-version="v1.8.0" 11. Start dashboard $ minikube dashboard
12.14.2017
Getting Started with Kubernetes
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment