-
Notifications
You must be signed in to change notification settings - Fork 174
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
Registry pod affinity #1039
Registry pod affinity #1039
Conversation
- Add PodAffinity - Add HPA - Add PriorityClassName - Add PodDisruptionBudget - Add package variables for resources & PVC size - Add support for package variables on zarf init
Sad times, the daemonset will only be useful on clusters with at least 2 nodes per AZ and even then can be a bit janky, so dropping that part of this. Did verify if a node completely dies you can recover by re-running Notes on the |
ef2f0d0
to
3c9cc74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and looks good to me (despite the notes)
Thanks for the review @Racer159 I'm going to keep this one open for comment tomorrow since I posted in K8s Slack asking for K8s feedback. |
Removes a test that was previously needed to make sure a package in a default path was read. Now that #1039 is merged, we have this covered on init package create / deploy + it was was trampling over that file during this test.
This PR changes the behavior of the internal Zarf Registry to behave correctly on mulit-node clusters with storage (a change in v0.22.x made this unstable). Change list: - Use [Pod Affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#an-example-of-a-pod-that-uses-pod-affinity) to force pods onto the same node for proper upgrades/restarts - Add K8s [HPA](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) to increase performance of image pushes - Add [Priority Classes](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) to the Zarf Agent and Zarf Registry deployments - Add [Pod Disruption Budget](https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets) for the Zarf Registry - Add Zarf variables to support custom registry resources requests/limits, custom PVC size, and alternatively the use of a custom PVC - Move the Zarf Registry chart to a local chart - Fix a small issue with log files not being properly saved for K3s workflows - Fix issue from #934 with cross-platform commands - Remove makefile config overrides and replace with `zarf-config.toml` Fixes #1004 Related to #1062
Removes a test that was previously needed to make sure a package in a default path was read. Now that #1039 is merged, we have this covered on init package create / deploy + it was was trampling over that file during this test.
This PR changes the behavior of the internal Zarf Registry to behave correctly on mulit-node clusters with storage (a change in v0.22.x made this unstable). Change list:
zarf-config.toml
Fixes #1004
Related to #1062