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

Doc : explain network policies needed #141

Open
tpoindessous opened this issue Jan 26, 2023 · 1 comment
Open

Doc : explain network policies needed #141

tpoindessous opened this issue Jan 26, 2023 · 1 comment
Labels
enhancement New feature or request help-wanted Extra attention is needed

Comments

@tpoindessous
Copy link

Is your feature request related to a problem? Please describe.
Hi

we are installing httpcache on GKE, but we have network policies. We are debugging to find what are the requirements.

Describe the solution you'd like
We would like to have a documentation for network policies 😄

Describe alternatives you've considered
When we finish our installation, we will publish a PR for this documentation.

Additional context
Thanks for your work !

@tpoindessous tpoindessous added the enhancement New feature or request label Jan 26, 2023
@martin-helmich
Copy link
Member

Sorry that this has been laying around for a while. Hope my answer is still useful. This is not a documentation per se (PRs to make it fancy and add it to the README are welcome -- at least, until I get around to it myself), but here goes (note, this is from memory and may be not entirely complete):

You'll need network policies that allow...

  1. kube-httpcache to connect to the Pods selected by your backend service (whichever port your HTTP workload runs on)
  2. your ingress controller to connect to kube-httpcache on its HTTP port (usually 8080)

Additionally, when using a HA setup with the signaller component, you'll also need policies that allow...

  1. kube-httpcache to connect to other kube-httpcache Pods on its signaller port (usually 8090)
  2. your ingress controller to connect to kube-httpcache on its signaller port, IF you need to trigger purge requests from somewhere external to your cluster
  3. your backend service to connect to kube-httpcache on its signaller port, IF the workload should trigger purge requests on its own

Additionally, when using a sharded, self-routing setup, you'll also need policies that allow...

  1. kube-httpcache to connect to other kube-httpcache Pods on its HTTP port (usually 8080)

@martin-helmich martin-helmich added the help-wanted Extra attention is needed label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants