[Kubernetes] Setup a Local Development Environment
Last active
August 1, 2019 06:06
-
-
Save yingray/14ebcb9113922e1959ecc303af4fc9e2 to your computer and use it in GitHub Desktop.
[Kubernetes] Setup a Local Development Environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run the installation command | |
brew install kubernetes-cli | |
# Test to ensure the version you installed is up-to-date | |
kubectl version | |
# Install a Hypervisor (Virtualbox: https://www.virtualbox.org/wiki/Downloads) | |
# The easiest way to install Minikube on macOS is using Homebrew | |
brew cask install minikube | |
# Test to ensure the version you installed is up-to-date | |
minikube version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Minikube and create a cluster | |
minikube start | |
# Set docker-env to let Minikube cluster access your local images | |
eval $(minikube docker-env) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Helm from homebrew | |
brew install kubernetes-helm | |
# Install Tiller into the cluster | |
helm init | |
# Check Tiller running into the kube-system namespace | |
kubectl get pods --namespace kube-system | |
# Test to ensure the version of helm | |
helm version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment