Created
August 27, 2020 17:48
-
-
Save jonstacks/1e75018f907591bdaca8cfbaac14dfa1 to your computer and use it in GitHub Desktop.
Bootstrap a kubernetes in docker cluster with helm v2 installed
This file contains hidden or 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
#!/bin/bash | |
set -e | |
kind create cluster --image kindest/node:v1.18.6 | |
NAMESPACE="kube-system" | |
helm init --wait | |
kubectl --namespace $NAMESPACE create serviceaccount tiller | |
kubectl --namespace $NAMESPACE create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
kubectl --namespace $NAMESPACE patch deploy tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment