From 3dce3d07fdef3b05ba098aeac8c269f4fc655bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 15 Aug 2023 22:41:54 +0300 Subject: [PATCH] Work around unattended-upgrades quirk https://github.com/kubernetes/kubernetes/issues/107043#issuecomment-997769940 --- ansible-kubernetes.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible-kubernetes.yml b/ansible-kubernetes.yml index e39d6ae..032efd3 100644 --- a/ansible-kubernetes.yml +++ b/ansible-kubernetes.yml @@ -12,6 +12,11 @@ path: /var/lib/kubelet/config.yaml regexp: '^shutdownGracePeriodCriticalPods:' 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 hosts: kubernetes