Skip to content
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

Fix documentation for FQDN based policies which use Service DNS names #2667

Merged

Conversation

antoninbas
Copy link
Contributor

FQDN based policies cannot be used with "normal" (non headless Services)
as the DNS records point to the ClusterIP, yet policies are enforced
after AntreaProxy LB.

Reported by @GraysonWu

Signed-off-by: Antonin Bas abas@vmware.com

@antoninbas antoninbas added the kind/documentation Categorizes issue or PR as related to a documentation. label Aug 27, 2021
@GraysonWu
Copy link
Contributor

LGTM. Thanks for fixing this. BTW did you want to set reviewers instead of assinees?

@antoninbas
Copy link
Contributor Author

LGTM. Thanks for fixing this. BTW did you want to set reviewers instead of assinees?

that's right :), thanks

abhiraut
abhiraut previously approved these changes Aug 27, 2021
endpoint backing the Service. For headless Services, a ClusterIP is not
allocated and, assuming the Service has a selector, the DNS server returns A /
AAAA records that point directly to the endpoints. In that case, FQDN based
policies can be used successfully. For example, the following policy will drop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
policies can be used successfully. For example, the following policy will drop
policies can be used successfully. For example, the following exact name matching policy will drop

?

GraysonWu
GraysonWu previously approved these changes Aug 27, 2021
FQDN based policies cannot be used with "normal" (non headless Services)
as the DNS records point to the ClusterIP, yet policies are enforced
after AntreaProxy LB.

Reported by @GraysonWu

Signed-off-by: Antonin Bas <abas@vmware.com>
Signed-off-by: Antonin Bas <abas@vmware.com>
@antoninbas antoninbas dismissed stale reviews from GraysonWu and abhiraut via f2c52f8 August 30, 2021 21:01
@antoninbas antoninbas force-pushed the doc-fqdn-policies-dont-work-with-services branch from d75b39e to f2c52f8 Compare August 30, 2021 21:01
Copy link
Contributor

@GraysonWu GraysonWu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@antoninbas
Copy link
Contributor Author

/skip-all

@antoninbas antoninbas merged commit 78fc11d into antrea-io:main Aug 30, 2021
@antoninbas antoninbas deleted the doc-fqdn-policies-dont-work-with-services branch August 30, 2021 21:21
antoninbas added a commit that referenced this pull request Aug 30, 2021
…cies (#2679)

FQDN based policies cannot be used with "normal" (non headless Services)
as the DNS records point to the ClusterIP, yet policies are enforced
after AntreaProxy LB.

Reported by @GraysonWu

Signed-off-by: Antonin Bas <abas@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to a documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants