Skip to content

Instantly share code, notes, and snippets.

@yankcrime
Created July 5, 2019 12:34
Show Gist options
  • Save yankcrime/a57f361309887701c2528745a9e3f004 to your computer and use it in GitHub Desktop.
Save yankcrime/a57f361309887701c2528745a9e3f004 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
kind create cluster --config ~/Temp/kind.yml
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
kubectl delete storageclass standard
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
kubectl annotate storageclass --overwrite local-path 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