-
Notifications
You must be signed in to change notification settings - Fork 718
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 defining dnsPolicy and dnsConfig options for ECK operator statefulset #7999
base: main
Are you sure you want to change the base?
Conversation
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.
Really sorry for the delays in getting this reviewed. I have a question about why we are making decisions on linking dnsPolicy and dnsConfig? And what if we set hostNetwork: true, and dnsPolicy: "something-else"? It explicitly sets dnsPolicy to clusterfirstWithHostNet
.
Thank you for this contribution! Since there hasn’t been recent activity, I’ll adopt this PR to complete it and get it merged. Your work will be preserved and credited. |
e26e6b7
to
795dab6
Compare
deploy/eck-operator/values.yaml
Outdated
# CAUTION: Proceed at your own risk. This setting has security concerns such as allowing malicious users to access workloads running on the host. | ||
hostNetwork: false | ||
# | ||
# dnsPolicy defines the DNS policy for the operator pod. Available options are: |
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.
Should we add a link to the original documentation (https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy), and invite the reader to go there for more information?
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.
buildkite test this |
Sorry for the delay in responding, I missed the intial notification.
|
This PR adds support to the statefulset template for defining
dnsPolicy
anddnsConfig
options.Flow control is designed to both prevent conflicts with the existing hostNetwork option and to only render out these options if they are both defined together.If
hostNetwork
is enabled,dnsPolicy
defaults toClusterFirstWithHostNet
unless explicitly set.Both new options have been documented with examples in
values.yaml
.