You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using runAsNonRoot and customentrypoints the helm chart fails to install with error in kubernetes for the preinstall
Warning FailedMount 26s (x10 over 4m36s) kubelet MountVolume.SetUp failed for volume "puppetserver-customentrypoints" : configmap "puppetserver-customentrypoints" not found
Expected Behavior
Helm chart should install, preinstall should create the configmap properly if required
Steps to Reproduce
try to install helm chart with values similar to below
install will fail after some time from helm
Environment
Version: 9.3.4
Platform AKS - with external PGDB
Additional Context
I am trying to inject a basic autosign conf as i don't want to generically have autosign enabled for everything and i was attempting to come from a "baremetal" environment (without puppetdb)
I am also doing this because i found disabling autosign (false) prevents the initial server certs from being signed as well (probably worth raising a seperate bug somewhere there)
FYI i also note similar error if i try putting netrc value into values and eyaml keys (which is a bad idea anyway so i've fixed the error of my ways there)
it looks almost like the preinstall is too early so the configmap isn't created yet and won't get created unless the preinstall succeeds - in my case i am not sure the configmap is even needed in the preinstall or not but others may need it as the run as nonroot
I am happy to disable runAsNonRoot if the CA certs are persisted but the readme suggests that certs get regenerated so is a little unclear here
i think helm/helm#2622 and helm/helm#8694 are related issues in that we likely need to add configmaps and secrets etc to the pre-install hook but with the right resource policies to prevent deletion prior to spinning up the environment proper
that or the pre install job would need to be handled in an init-container but that sounds far more of a larger change to implement
Describe the Bug
when using runAsNonRoot and customentrypoints the helm chart fails to install with error in kubernetes for the preinstall
Expected Behavior
Helm chart should install, preinstall should create the configmap properly if required
Steps to Reproduce
try to install helm chart with values similar to below
install will fail after some time from helm
Environment
Additional Context
I am trying to inject a basic autosign conf as i don't want to generically have autosign enabled for everything and i was attempting to come from a "baremetal" environment (without puppetdb)
I am also doing this because i found disabling autosign (false) prevents the initial server certs from being signed as well (probably worth raising a seperate bug somewhere there)
FYI i also note similar error if i try putting netrc value into values and eyaml keys (which is a bad idea anyway so i've fixed the error of my ways there)
it looks almost like the preinstall is too early so the configmap isn't created yet and won't get created unless the preinstall succeeds - in my case i am not sure the configmap is even needed in the preinstall or not but others may need it as the run as nonroot
I am happy to disable runAsNonRoot if the CA certs are persisted but the readme suggests that certs get regenerated so is a little unclear here
my values.yaml - sensitive data redacted
The text was updated successfully, but these errors were encountered: