Open baurmatt opened 4 years ago
Another alternative would be to run the cronjob in the sidecar.
Moaaar options :D https://github.com/kubernetes/git-sync
@baurmatt Hey - thanks for reporting it.
Right now we don't support running multiple Puppet masters on different nodes which sit in different cloud zones but we have plans and work has started on that.
In the README you can find information on how to setup properly Puppet Server in the cloud using a K8s Storage Class here, how to set pod affinity for r10k here or setting common node selectors for Puppet Server and r10k here.
Have you tested those options?
Describe the Bug
The k8s Helm Chart uses a PersistentVolume (
puppet-code-claim
) for the Puppet code (/etc/puppetlabs/code/) storage. This gets initialized by a PersistentVolumeClaim asReadWriteOnce
.The PVC (
puppet-code-claim
) then gets used by the Puppetserver Deployment and both r10k Cronjobs (code/hiera). Due to the fact that the volume being aReadWriteOnce
, this doesn't work.This effectively leads to broken setup as the code will never be deployed.
Expected Behavior
Quick and dirty:
s,ReadWriteOnce,ReadWriteMany,g
But because
ReadWriteMany
isn't support by a many cloud providers, I would prefer a solution which doesn't depend on the cloud provider offering aReadWriteMany
.My current approach would be a webhook based version instead of cronjobs:
Steps to Reproduce
Deploy the helm chart on a multi node cluster (not multi az/dc! ;))
Environment
Additional Context
Add any other context about the problem here.