Make dnsPolicy configurable to fix EKS deployment issues #11595
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The tigera-operator currently has a hardcoded
dnsPolicy: ClusterFirstWithHostNetin the deployment template, which causes a DNS circular dependency on AWS EKS during initial cluster setup. This prevents successful Calico deployment on fresh EKS clusters.This PR makes the
dnsPolicyconfigurable via values.yaml while maintaining backward compatibility with the current default behavior.Summary
Make dnsPolicy configurable to fix EKS deployment issues
Problem
dnsPolicy: ClusterFirstWithHostNetin the deployment templateSolution
dnsPolicyconfigurable via values.yamlClusterFirstWithHostNetas default for backward compatibilitydnsPolicy: Defaultto use node DNS (VPC DNS)Breaking Changes
None - default behavior unchanged
Usage
Testing
Tested the following scenarios:
Default behavior (backward compatibility):
dnsPolicyset in values.yamlClusterFirstWithHostNetEKS with dnsPolicy: Default:
dnsPolicy: Defaultin values.yamlCombined with dnsConfig:
dnsPolicyanddnsConfigcan be setRelated issues/PRs
fixes tigera/operator#4325
relates to #10683
Todos
Release Note
Reminder for the reviewer
Make sure that this PR has the correct labels and milestone set.
Suggested labels:
docs-completed: Documentation update included in PR descriptionrelease-note-required: This PR has user-facing changes (new configuration option)priority/important-longterm(affects EKS users)Code Changes
Why This Fix is Needed
EKS-Specific Architecture:
<VPC_CIDR>.2) is available but not used with ClusterFirstWithHostNetWhy
dnsPolicy: DefaultWorks:/etc/resolv.conf(configured by EKS to use VPC DNS)Impact: