1
0
forked from k-space/kube

Work around unattended-upgrades quirk

https://github.com/kubernetes/kubernetes/issues/107043#issuecomment-997769940
This commit is contained in:
Lauri Võsandi 2023-08-15 22:41:54 +03:00
parent f9393fd0da
commit 3dce3d07fd

View File

@ -12,6 +12,11 @@
path: /var/lib/kubelet/config.yaml path: /var/lib/kubelet/config.yaml
regexp: '^shutdownGracePeriodCriticalPods:' regexp: '^shutdownGracePeriodCriticalPods:'
line: 'shutdownGracePeriodCriticalPods: 5m' line: 'shutdownGracePeriodCriticalPods: 5m'
- name: Work around unattended-upgrades
ansible.builtin.lineinfile:
path: /lib/systemd/logind.conf.d/unattended-upgrades-logind-maxdelay.conf
regexp: '^InhibitDelayMaxSec='
line: 'InhibitDelayMaxSec=5m0s'
- name: Pin kube components - name: Pin kube components
hosts: kubernetes hosts: kubernetes