Use kubectl patch
This commit is contained in:
parent
9924a33d6f
commit
b800f7bb07
1 changed files with 1 additions and 4 deletions
|
@ -25,10 +25,7 @@
|
||||||
when: helm_container.changed
|
when: helm_container.changed
|
||||||
|
|
||||||
- name: Helm | Patch tiller deployment for RBAC
|
- name: Helm | Patch tiller deployment for RBAC
|
||||||
shell: >
|
command: kubectl patch deployment tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' -n {{ system_namespace }}
|
||||||
kubectl --namespace={{ system_namespace }} get deployment tiller-deploy -o json | \
|
|
||||||
python -c 'import sys,json;a=json.load(sys.stdin);a["spec"]["template"]["spec"]["serviceAccount"]="tiller";json.dump(a,sys.stdout)' | \
|
|
||||||
kubectl apply -n {{ system_namespace }} -f -
|
|
||||||
when: rbac_enabled
|
when: rbac_enabled
|
||||||
|
|
||||||
- name: Helm | Set up bash completion
|
- name: Helm | Set up bash completion
|
||||||
|
|
Loading…
Reference in a new issue