Update cluster-rollout-update.yaml.j2 (#1035)
This commit is contained in:
1 parent
ee1a69275b
commit
30b4a88048
1 file changed
+14
-23
@@ -33,30 +33,21 @@
|
||||
delegate_to: "{% raw %}{{ groups['master'][0] }}{% endraw %}"
|
||||
|
||||
- name: Drain
|
||||
ansible.builtin.command: "kubectl drain --pod-selector='app!=rook-ceph-osd,app!=csi-attacher,app!=csi-provisioner' --ignore-daemonsets --delete-emptydir-data --force --grace-period=300 {% raw %}{{ inventory_hostname }}{% endraw %}"
|
||||
kubernetes.core.k8s_drain:
|
||||
kubeconfig: /etc/rancher/k3s/k3s.yaml
|
||||
state: drain
|
||||
delete_options:
|
||||
delete_emptydir_data: true
|
||||
ignore_daemonsets: true
|
||||
terminate_grace_period: 600
|
||||
wait_timeout: 900
|
||||
pod_selectors:
|
||||
# Rook Ceph
|
||||
- app!=rook-ceph-osd
|
||||
# Longhorn
|
||||
- app!=csi-attacher
|
||||
- app!=csi-provisioner
|
||||
delegate_to: "{% raw %}{{ groups['master'][0] }}{% endraw %}"
|
||||
changed_when: false
|
||||
|
||||
### pod_selectors feature in upcoming kubernetes.core 2.5.0 ###
|
||||
# - name: Drain
|
||||
# kubernetes.core.k8s_drain:
|
||||
# name: "{% raw %}{{ inventory_hostname }}{% endraw %}"
|
||||
# kubeconfig: /etc/rancher/k3s/k3s.yaml
|
||||
# state: drain
|
||||
# delete_options:
|
||||
# delete_emptydir_data: true
|
||||
# ignore_daemonsets: true
|
||||
# terminate_grace_period: 600
|
||||
# wait_timeout: 900
|
||||
# force: true
|
||||
# pod_selectors:
|
||||
# # Rook Ceph
|
||||
# - app!=rook-ceph-osd
|
||||
# # Longhorn
|
||||
# - app!=csi-attacher
|
||||
# # Longhorn
|
||||
# - app!=csi-provisioner
|
||||
# delegate_to: "{% raw %}{{ groups['master'][0] }}{% endraw %}"
|
||||
|
||||
- name: Update
|
||||
ansible.builtin.apt:
|
||||
|
||||
Reference in new issue
Block a user