From 78bb4be97617338a0a2cb278319890e7ac338810 Mon Sep 17 00:00:00 2001 From: John Kung Date: Fri, 15 Oct 2021 07:53:54 -0500 Subject: [PATCH] Update kubelet host filesystem ephemeral storage at runtime At runtime, restart the kubelet after the ephemeral storage update, to allow it to handle the updated ephemeral-storage. Test Plan: PASSED Verify controller host-fs-modify kubelet PASSED Verify worker host-fs-modify kubelet PASSED Verify kubectl described node reflects updated ephemeral-storage PASSED Verify application pods continue running PASSED Verify no stuck Configuration 250.001 alarm or puppet Error Closes-Bug: 1947006 Signed-off-by: John Kung Change-Id: I03ed193678c811274e0a1b595b8ff9450f290cee --- puppet-manifests/src/modules/platform/manifests/filesystem.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/puppet-manifests/src/modules/platform/manifests/filesystem.pp b/puppet-manifests/src/modules/platform/manifests/filesystem.pp index 0db851d6d..16b8de398 100644 --- a/puppet-manifests/src/modules/platform/manifests/filesystem.pp +++ b/puppet-manifests/src/modules/platform/manifests/filesystem.pp @@ -377,6 +377,9 @@ class platform::filesystem::kubelet::runtime { lv_size => $lv_size, devmapper => $devmapper, } + -> exec { "restart kubelet after ${lv_name} resize ${lv_size}": + command => '/usr/local/sbin/pmon-restart kubelet' + } }