grafana / k6-operator

An operator for running distributed k6 tests.
Apache License 2.0
541 stars 147 forks source link

Make `dnsPolicy` and `dnsConfig` configurable #406

Open robooo opened 1 month ago

robooo commented 1 month ago

Feature Description

To be able to change dns settings easily. Still not available in TestRun spec section, not sure if it's on purpose or not :)

Suggested Solution (optional)

No response

Already existing or connected issues / PRs (optional)

No response

yorugac commented 1 month ago

Hi @robooo, thanks for the issue. It's not on purpose; it just never came up as the request before, AFAIR. Could you please add description of your use case?

robooo commented 1 month ago

Hey @yorugac, Since you are running k6-operator in kubernetes it will inherit dns config from the kube dns. So for example resolv.conf in my k6 pods had nameserver which I didn't want to use + search line consists of more domains lookups which is not a big deal but why to spam it. Only way I'm able to do it, is to rewrite the resolv.conf before run or tweak the kube dns. If there is some more simple "k6-operator" way, please correct me and just ignore this request :)