Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yingray/14ebcb9113922e1959ecc303af4fc9e2 to your computer and use it in GitHub Desktop.
Save yingray/14ebcb9113922e1959ecc303af4fc9e2 to your computer and use it in GitHub Desktop.
[Kubernetes] Setup a Local Development Environment

[Kubernetes] Setup a Local Development Environment

# 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
# Start Minikube and create a cluster
minikube start
# Set docker-env to let Minikube cluster access your local images
eval $(minikube docker-env)
# 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