summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/redeploy-certificates.yml
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2016-12-16 08:41:40 -0800
committerTim Bielawa <tbielawa@redhat.com>2016-12-16 13:45:41 -0800
commit96df370b8208d0a90dac7e38857dbcdce52fd161 (patch)
treeaafb54c022ec6aba9a99bfa4d845a8926b1152e7 /playbooks/common/openshift-cluster/redeploy-certificates.yml
parent002fdef1769baccdd6c90a4caa8c0028ec9559db (diff)
downloadopenshift-96df370b8208d0a90dac7e38857dbcdce52fd161.tar.gz
openshift-96df370b8208d0a90dac7e38857dbcdce52fd161.tar.bz2
openshift-96df370b8208d0a90dac7e38857dbcdce52fd161.tar.xz
openshift-96df370b8208d0a90dac7e38857dbcdce52fd161.zip
Deprecate node 'evacuation' with 'drain'
* https://trello.com/c/TeaEB9fX/307-3-deprecate-node-evacuation
Diffstat (limited to 'playbooks/common/openshift-cluster/redeploy-certificates.yml')
-rw-r--r--playbooks/common/openshift-cluster/redeploy-certificates.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/playbooks/common/openshift-cluster/redeploy-certificates.yml b/playbooks/common/openshift-cluster/redeploy-certificates.yml
index 5f008a045..5fc81bf3a 100644
--- a/playbooks/common/openshift-cluster/redeploy-certificates.yml
+++ b/playbooks/common/openshift-cluster/redeploy-certificates.yml
@@ -204,7 +204,7 @@
cp {{ openshift.common.config_base }}/master//admin.kubeconfig {{ mktemp.stdout }}/admin.kubeconfig
changed_when: False
-- name: Serially evacuate all nodes to trigger redeployments
+- name: Serially drain all nodes to trigger redeployments
hosts: oo_nodes_to_config
serial: 1
any_errors_fatal: true
@@ -222,7 +222,7 @@
was_schedulable: "{{ 'unschedulable' not in (node_output.stdout | from_json).spec }}"
when: openshift_certificates_redeploy_ca | default(false) | bool
- - name: Prepare for node evacuation
+ - name: Prepare for node draining
command: >
{{ openshift.common.client_binary }} adm --config={{ hostvars[groups.oo_first_master.0].mktemp.stdout }}/admin.kubeconfig
manage-node {{ openshift.node.nodename }}
@@ -230,11 +230,11 @@
delegate_to: "{{ groups.oo_first_master.0 }}"
when: openshift_certificates_redeploy_ca | default(false) | bool and was_schedulable | bool
- - name: Evacuate node
+ - name: Drain node
command: >
{{ openshift.common.client_binary }} adm --config={{ hostvars[groups.oo_first_master.0].mktemp.stdout }}/admin.kubeconfig
manage-node {{ openshift.node.nodename }}
- --evacuate --force
+ --drain --force
delegate_to: "{{ groups.oo_first_master.0 }}"
when: openshift_certificates_redeploy_ca | default(false) | bool and was_schedulable | bool