mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2025-01-20 19:10:21 +01:00
parent
765fbf2e9b
commit
db3f7da362
2 changed files with 6 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
cmd: >-
|
||||
{{ k3s_install_dir }}/kubectl drain {{ item }}
|
||||
--ignore-daemonsets
|
||||
--delete-local-data
|
||||
--{{ k3s_drain_command[ansible_version.string is version_compare('1.22', '>=')] }}
|
||||
--force
|
||||
delegate_to: "{{ k3s_control_delegate }}"
|
||||
run_once: true
|
||||
|
|
|
@ -159,3 +159,8 @@ k3s_cgroup_subsys:
|
|||
documentation: |
|
||||
If you are running Alpine Linux, see:
|
||||
https://rancher.com/docs/k3s/latest/en/advanced/#additional-preparation-for-alpine-linux-setup
|
||||
|
||||
# Drain command
|
||||
k3s_drain_command:
|
||||
true: delete-emptydir-data
|
||||
false: delete-local-data
|
||||
|
|
Loading…
Reference in a new issue