-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support for volumeClaimTemplates #612
Comments
I had thought generic ephemeral volumes would fulfill this need https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes. Unfortunately it's alpha in Kubernetes 1.20, and beta in 1.21. |
@inahga Hey! Thanks for the info. But I'm not sure how ephemeral volumes help. If it is I may be be wrong though. Could you confirm? |
Ah I think you're right. I was thinking you could set the Still though it might depend on the storage driver. I think Either way thanks for clarifying the use case, looks like your proposed approach should fit it well. |
@mumoshu This would be dope :) I am currently using |
@Puneeth-n I've just read your story here #452 (comment). Congrats! 🎉 |
The only reason we had Jenkins was because of the docker layer caching as our base images are huge. Huge base images + lots of services in the monorepo that leverage on these base images made it very difficult for me to move away from Jenkins. Now I wast GitHub to allow different parameter types like choices in |
@Puneeth-n thank you for your kind words! Happy to see this work improving your quality of life 🎉 |
* feat: RunnerSet backed by StatefulSet Unlike a runner deployment, a runner set can manage a set of stateful runners by combining a statefulset and an admission webhook that mutates statefulset-managed pods with required envvars and registration tokens. Resolves #613 Ref #612 * Upgrade controller-runtime to 0.9.0 * Bump Go to 1.16.x following controller-runtime 0.9.0 * Upgrade kubebuilder to 2.3.2 for updated etcd and apiserver following local setup * Fix startup failure due to missing LeaderElectionID * Fix the issue that any pods become unable to start once actions-runner-controller got failed after the mutating webhook has been registered * Allow force-updating statefulset * Fix runner container missing work and certs-client volume mounts and DOCKER_HOST and DOCKER_TLS_VERIFY envvars when dockerdWithinRunner=false * Fix runnerset-controller not applying statefulset.spec.template.spec changes when there were no changes in runnerset spec * Enable running acceptance tests against arbitrary kind cluster * RunnerSet supports non-ephemeral runners only today * fix: docker-build from root Makefile on intel mac * fix: arch check fixes for mac and ARM * ci: aligning test data format and patching checks * fix: removing namespace in test data * chore: adding more ignores * chore: removing leading space in shebang * Re-add metrics to org hra testdata * Bump cert-manager to v1.1.1 and fix deploy.sh Co-authored-by: toast-gear <[email protected]> Co-authored-by: Callum James Tait <[email protected]>
`HRA.Spec.ScaleTargetRef.Kind` is added to denote that the scale-target is a RunnerSet. It defaults to `RunnerDeployment` for backward compatibility. ``` apiVersion: actions.summerwind.dev/v1alpha1 kind: HorizontalRunnerAutoscaler metadata: name: myhra spec: scaleTargetRef: kind: RunnerSet name: myrunnerset ``` Ref #629 Ref #613 Ref #612
ARC v0.22.0 makes RunnerSet even more reliable so I can generally recommend v0.22.0 + RunnerSet if you do need voluemClaimTemplates! |
Like Kubernetes StatefulSet, investigate adding support for volumeClaimTemplates to e.g. Runner spec, so that you can use two or more pods per node while leveraging docker layer caching and other custom caching using Kubernetes persistent volumes.
Theoretically, any functionality that can dynamically resize pool of PVCs and PVs and attach PVs to each runner pod should work. It's basically what volumeClaimTemplates does and I thought it's better to start modeling it after that.
The text was updated successfully, but these errors were encountered: