Skip to content

Commit 163e717

Browse files
committed
Improve helm init process
1 parent 1de15ca commit 163e717

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

manifest.jps

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,10 @@ actions:
234234
install-helm-master:
235235
cmd[${nodes.k8sm.master.id}]: |-
236236
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash > /dev/null 2>&1
237-
helm init --upgrade
238-
helm repo update
239237
kubectl create serviceaccount --namespace kube-system tiller
240238
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
241-
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
239+
helm init --upgrade --service-account tiller
240+
helm repo update
242241
sleep 5
243242
while true; do
244243
READY_REPLICAS=$(kubectl get deployment/tiller-deploy -o=jsonpath='{.status.readyReplicas}' -n kube-system)

0 commit comments

Comments
 (0)