-
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
Unable to pass dnsConfig to self-hosted autoscaling runners #761
Comments
@sammcj Hey! This sounds like a valid feature request. Would you mind submitting a PR like #628 to add the additional pod template field support for Runner and RunnerDeployment resources? You can also try RunnerSet which is still an unreleased feature, if you could try building a custom build of actions-runner-controller from https://github.com/actions-runner-controller/actions-runner-controller#stateful-runners RunnerSets supports any pod template fields out of the box. |
@sammcj FYI https://github.com/rewanthtammana/kubectl-fields this plugin is super helpful for checking if a attribute is part of your deployed CRD set, for example here what it found for the
|
Thanks for confirming this isn't currently possible @mumoshu, I'll submit a PR! |
@callum-tait-pbx that looks really useful! Thank you! |
I'm trying to set
dnsConfig
on the self-hosted autoscaling runner deployments.Apologies if I'm simply trying to set it in the wrong place - I'm new to helm and very new to Actions.
Checks
To Reproduce
I followed actions-runner-controller.md, using helm for the controller and deploying the runners via a simple kubernetes deployment manifest.
Which errors as it can't find RunnerDeployment.spec.template.spec.dnsConfig:
Steps to reproduce the behavior:
dnsConfig
to the deployment.yaml and apply.RunnerDeployment.spec.template.spec.dnsConfig
Expected behavior
The following k8s deployment manifest (or similar) to work:
and from that
dnsConfig
should be passed to runner pods which configures /etc/resolv.conf inside containers with the provided options.Environment:
Additional Context:
The reason I'm needing to configure this is because it seems with DIND (or really Docker in ContainerD) some base images (such as alpine) incorrectly get
ndots:5
configured in/etc/resolv.conf
which causes DNS lookup failures inside the container.information on what ndots is
The text was updated successfully, but these errors were encountered: