Decrease provisioner pause;Apply bug workaround;Housekeeping
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1c950086fa
commit
abcf530b49
@ -5,15 +5,26 @@
|
|||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
|
|
||||||
- name: Drain node
|
- name: Drain node
|
||||||
kubernetes.core.k8s_drain:
|
# Currently does not work; returns with error "Failed to delete pod [...] due to: Too Many Requests"
|
||||||
name: "{{ decom_nodename }}"
|
# See also: https://github.com/ansible-collections/kubernetes.core/issues/474
|
||||||
state: drain
|
# kubernetes.core.k8s_drain:
|
||||||
delete_options:
|
# name: "{{ decom_nodename }}"
|
||||||
ignore_daemonsets: true
|
# state: drain
|
||||||
delete_emptydir_data: true
|
# delete_options:
|
||||||
wait_sleep: 10
|
# ignore_daemonsets: true
|
||||||
wait_timeout: 0
|
# delete_emptydir_data: true
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
# kubeconfig: "{{ kubeconfig.path }}"
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: >-
|
||||||
|
kubectl drain {{ decom_nodename }} \
|
||||||
|
--delete-emptydir-data \
|
||||||
|
--ignore-daemonsets
|
||||||
|
register: nodedrain_results
|
||||||
|
until:
|
||||||
|
- nodedrain_results is not failed
|
||||||
|
- (nodedrain_results.stdout_lines | last) is match('node/.* drained')
|
||||||
|
retries: "{{ playbook.retries }}"
|
||||||
|
delay: "{{ playbook.delay.short }}"
|
||||||
|
|
||||||
- name: Delete node
|
- name: Delete node
|
||||||
kubernetes.core.k8s:
|
kubernetes.core.k8s:
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
name: "{{ virtualmachine_details.instance.hw_name }}"
|
name: "{{ virtualmachine_details.instance.hw_name }}"
|
||||||
folder: "{{ virtualmachine_details.instance.hw_folder }}"
|
folder: "{{ virtualmachine_details.instance.hw_folder }}"
|
||||||
state: poweredoff
|
state: poweredoff
|
||||||
# state_change_timeout: "{{ playbook.delay.long }}"
|
|
||||||
|
|
||||||
# - name: Delete VM
|
# - name: Delete VM
|
||||||
# community.vmware.vmware_guest:
|
# community.vmware.vmware_guest:
|
||||||
|
@ -25,7 +25,7 @@ build {
|
|||||||
}
|
}
|
||||||
|
|
||||||
provisioner "ansible" {
|
provisioner "ansible" {
|
||||||
pause_before = "2m30s"
|
pause_before = "45s"
|
||||||
|
|
||||||
playbook_file = "ansible/playbook.yml"
|
playbook_file = "ansible/playbook.yml"
|
||||||
user = "ubuntu"
|
user = "ubuntu"
|
||||||
|
Loading…
Reference in New Issue
Block a user