Skip to content

Instantly share code, notes, and snippets.

@shaneutt
Created July 28, 2019 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaneutt/69f9131b660422ce747dc884d253c764 to your computer and use it in GitHub Desktop.
Save shaneutt/69f9131b660422ce747dc884d253c764 to your computer and use it in GitHub Desktop.
kindsetup.sh
#!/bin/bash
set -euo pipefail
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
kubectl delete storageclasses.storage.k8s.io standard
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment