Skip to content

feat: enable support for "dnsPolicy" in Prometheus, AlertManager and Thanos CRD#5027

Closed
rajpratik71 wants to merge 3 commits intoprometheus-operator:mainfrom
monitoring-projects:prometheus-dnsPolicy-support
Closed

feat: enable support for "dnsPolicy" in Prometheus, AlertManager and Thanos CRD#5027
rajpratik71 wants to merge 3 commits intoprometheus-operator:mainfrom
monitoring-projects:prometheus-dnsPolicy-support

Conversation

@rajpratik71
Copy link
Contributor

@rajpratik71 rajpratik71 commented Sep 16, 2022

Description

Needed in scenarios like:

  1. When using "hostNetwork"
  2. for a Pod to ignore DNS settings from the Kubernetes environment

Signed-off-by: Pratik Raj rajpratik71@gmail.com

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry

feat: enable support for "dnsPolicy" in Prometheus, AlertManager and Thanos CRD

Needed in scenarios like:
1. When using "hostNetwork"
2. for a Pod to ignore DNS settings from the Kubernetes environment

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
@simonpasquier
Copy link
Contributor

could you take over from #3899? dnsPolicy should be implemented for all CRDs (Prometheus, Alertmanager and ThanosRuler) and having dnsConfig oo would be nice.

Needed in scenarios like:
1. When using "hostNetwork"
2. for a Pod to ignore DNS settings from the Kubernetes environment

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
Needed in scenarios like:
1. When using "hostNetwork"
2. for a Pod to ignore DNS settings from the Kubernetes environment

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
@rajpratik71 rajpratik71 changed the title feat: enable support for "dnsPolicy" in Prometheus CRD feat: enable support for "dnsPolicy" in Prometheus, AlertManager and Thanos CRD Sep 26, 2022
@rajpratik71
Copy link
Contributor Author

Hi @simonpasquier , added support for "dnsPolicy" in Prometheus, AlertManager and Thanos CRD.

@prometheus-operator-reviewers Please review

@simonpasquier
Copy link
Contributor

See #5010 (comment) but I'm not sure that we need a way to configure dnsPolicy in the CRD after all.

@simonpasquier
Copy link
Contributor

I think we can close it for now. If you're willing to ressurect #3899, feel free to do so :)
I think that we should only expose the dnsConfig field, dnsPolicy is probably not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants