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

Network Policies are actually don't block anything #68

Closed
behoof4mind opened this issue Aug 22, 2024 · 2 comments · Fixed by #70
Closed

Network Policies are actually don't block anything #68

behoof4mind opened this issue Aug 22, 2024 · 2 comments · Fixed by #70

Comments

@behoof4mind
Copy link

behoof4mind commented Aug 22, 2024

Hi Team,

As a customer I wan't to have an option to restrict access to Gdata-VaaS service inside Kubernetes cluster.
Unfortunately I have noticed, that with current helm chart implementation network policies does not block anything. Ingress rules does not have From: field, and Egress rules on the other hand does not have To: fields.

I have tried to add custom networkPolicy outside of the Helm Chart, but there is no way how I can differentiate gateway and gdscan pods, because they have completely the same labels (usually app.kubernetes.io/instance is using for this purpose).

Could you maybe fix it? Good example how it could be done is actually in the Redis helm chart here.

Thank you in advance and best regards.

@pstadermann
Copy link
Contributor

Hi behoof4mind,

thank you for your feedback. We will look into

  • Explicit from and to Ingress/Egress rules
  • Allow selecting pods in custom networkPolicies
  • Example for custom networkPolicy

A solution will be ready at the end of the week.

Cheers!

@doxthree doxthree linked a pull request Aug 27, 2024 that will close this issue
@GermanCoding
Copy link
Contributor

Updated in chart version 2.1.0:

  • app.kubernetes.io/name is now different for gateway and gdscan pods
  • default network policy is more restrictive where possible

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 a pull request may close this issue.

3 participants