fuel-ccp-installer/resources/dashboard/1.0.0/actions/update.yaml

14 lines
511 B
YAML

- hosts: [{{host}}]
become: yes
tasks:
- shell: kubectl delete service {{app_name}} --namespace=kube-system
- shell: kubectl delete rc {{app_name}} --namespace=kube-system
- template:
src: {{templates_dir}}/dashboard_rc.tmpl
dest: /tmp/dashboard_rc.yaml
- template:
src: {{templates_dir}}/dashboard_service.tmpl
dest: /tmp/dashboard_service.yaml
- shell: kubectl create -f /tmp/dashboard_rc.yaml
- shell: kubectl create -f /tmp/dashboard_service.yaml