Skip to content

Instantly share code, notes, and snippets.

@jonstacks
Created August 27, 2020 17:48
Show Gist options
  • Save jonstacks/1e75018f907591bdaca8cfbaac14dfa1 to your computer and use it in GitHub Desktop.
Save jonstacks/1e75018f907591bdaca8cfbaac14dfa1 to your computer and use it in GitHub Desktop.
Bootstrap a kubernetes in docker cluster with helm v2 installed
#!/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