From 2d1a70949065cb46fadd98628cd341c0f6e19a60 Mon Sep 17 00:00:00 2001 From: Jeremy Scott Date: Thu, 9 May 2024 14:51:27 +0100 Subject: [PATCH] Update readme with provisioner reloading helper pod manifest --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04a580b8d..7ccae2ad5 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,12 @@ The scripts receive their input as environment variables: #### Reloading -The provisioner supports automatic configuration reloading. Users can change the configuration using `kubectl apply` or `kubectl edit` with config map `local-path-config`. There is a delay between when the user updates the config map and the provisioner picking it up. +The provisioner supports automatic configuration reloading. Users can change the configuration using `kubectl apply` or `kubectl edit` with config map `local-path-config`. There is a delay between when the user updates the config map and the provisioner picking it up. In order for this to occur for updates made to the helper pod manifest, the following environment variable must be added to the provisioner container. If not, then the manifest used for the helper pod will be the same as what was in the config map when the provisioner was last restarted/deployed. + +```yaml +- name: CONFIG_MOUNT_PATH + value: /etc/config/ +``` When the provisioner detects the configuration changes, it will try to load the new configuration. Users can observe it in the log >time="2018-10-03T05:56:13Z" level=debug msg="Applied config: {\"nodePathMap\":[{\"node\":\"DEFAULT_PATH_FOR_NON_LISTED_NODES\",\"paths\":[\"/opt/local-path-provisioner\"]},{\"node\":\"yasker-lp-dev1\",\"paths\":[\"/opt\",\"/data1\"]},{\"node\":\"yasker-lp-dev3\"}]}"