Skip to content

Commit

Permalink
Update init-master.bash
Browse files Browse the repository at this point in the history
updating helm initialization with kubernetes 1.17: helm/helm#6374 (comment)
  • Loading branch information
ltetrel committed Feb 20, 2020
1 parent 62a20c7 commit 91cb815
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init-master.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -e

# By now the master node should be ready!
# Initialize kubeadm
sudo sysctl net.bridge.bridge-nf-call-iptables=1
sudo kubeadm init --pod-network-cidr=10.244.0.0/16
sysctl net.bridge.bridge-nf-call-iptables=1
kubeadm init --pod-network-cidr=10.244.0.0/16

# To use the cluster
mkdir -p $HOME/.kube
Expand All @@ -25,7 +25,7 @@ rm -rf linux-amd64

kubectl --namespace kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller --wait
helm init --service-account tiller --override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm' --output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | kubectl apply -f -
kubectl --namespace=kube-system patch deployment tiller-deploy --type=json --patch='[{"op": "add", "path": "/spec/template/spec/containers/0/command", "value": ["/tiller", "--listen=localhost:44134"]}]'

# Wait for tiller to be ready!
Expand Down

0 comments on commit 91cb815

Please sign in to comment.