From f0a7fe569dd6713fbd2da3c3abd67f1805c3287d Mon Sep 17 00:00:00 2001 From: jerger Date: Fri, 18 Mar 2022 18:39:08 +0100 Subject: [PATCH] restart provisioner after reconfiguration --- .../domaindrivenarchitecture/provs/server/infrastructure/K3s.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/K3s.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/K3s.kt index 61b6637..387b125 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/K3s.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/K3s.kt @@ -102,6 +102,7 @@ fun Prov.installK3s(k3sConfig: K3sConfig) = task { } applyK3sFileFromResource(localPathProvisionerConfig) + cmd("kubectl set env deployment -n kube-system local-path-provisioner DEPLOY_DATE=\"$(date)\"") cmd("ln -sf $k3sKubeConfig " + k8sCredentialsDir + "admin.conf", sudo = true) }