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

Add: network policies to create boundaries for proxies #8340

Conversation

Fraggle
Copy link
Contributor

@Fraggle Fraggle commented Oct 30, 2024

Description

Add network policies to block traffic between clusters.

Risk

I applied and tested that it was still working.

Deploy Plan

Apply infra (but no need, already did manually)

@@ -0,0 +1,54 @@
apiVersion: networking.k8s.io/v1
Copy link
Contributor

Choose a reason for hiding this comment

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

FMI, what does this do ? Why do we restrict the egress on the private cluster ?

# Internal cluster communication
- to:
- ipBlock:
cidr: 10.11.0.0/17 # VPC CIDR - adjust as needed
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh so to prevent re-entering the cluster ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want to force everything to internet via the nat gateway and we only want to allow internal communication within the cluster (so you cannot access the public cluster via the private one).

@Fraggle Fraggle merged commit d18fb69 into main Oct 31, 2024
2 checks passed
@Fraggle Fraggle deleted the 1425-remote-databases-update-network-policies--firewall-to-create-dmz branch October 31, 2024 11:11
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