Skip to content

Instantly share code, notes, and snippets.

@trutzonline
Last active February 13, 2020 21:14
Show Gist options
  • Select an option

  • Save trutzonline/788711a04383d58d9b2a6e42877e9d17 to your computer and use it in GitHub Desktop.

Select an option

Save trutzonline/788711a04383d58d9b2a6e42877e9d17 to your computer and use it in GitHub Desktop.
kubernetes cluster setup
# see also https://brew.sh/
# fetch the newest version of Homebrew
brew update
# upgrade outdated, unpinned formulae using the same options they were originally installed with
brew upgrade
# see also https://cert-manager.io/docs/installation/kubernetes/
kubectl config get-contexts
kubectl create namespace cert-manager
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.13.0/cert-manager.yaml
doctl kubernetes cluster kubeconfig save use_your_cluster_name
helm install nginx-ingress stable/nginx-ingress --set controller.publishService.enabled=true
# see also https://kubernetes.io/docs/tasks/tools/install-minikube/
brew install minikube
brew upgrade minikube
# starts a local kubernetes cluster
minikube start
# gets the status of a local kubernetes cluster
minikube status
# stops a running local kubernetes cluster
minikube stop
# deletes a local kubernetes cluster
minikube delete
# access the kubernetes dashboard running within the minikube cluster
minikube dashboard
# minikube addons help
minikube addons
# lists all available minikube addons
minikube addons list
# enables ingress addon within minikube
minikube addons enable ingress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment