-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k8s, code/hiera deployment isn't working because of ReadWriteOnce volume #204
Comments
Another alternative would be to run the cronjob in the sidecar. |
Moaaar options :D https://github.com/kubernetes/git-sync |
Fixes puppetlabs#204 by migrating the r10k cronjobs to sidecars The sidecar is using crond, while still respecting all values.yaml options from the cronjob
Fixes puppetlabs#204 by migrating the r10k cronjobs to sidecars The sidecar is using crond, while still respecting all values.yaml options from the cronjob
Fixes puppetlabs#204 by migrating the r10k cronjobs to sidecars The sidecar is using crond, while still respecting all values.yaml options from the cronjob
@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.
The text was updated successfully, but these errors were encountered: