Closed arthurk closed 5 years ago
Thank you @arthurk for this well written summary! I hope to get time to investigate this in a week or two. I'd like to learn more about network policies and ensure they function well within z2jh.
I'm assigning myself as a reminder!
This could be because To:
(traffic not restricted by source)
I think the two lines are read together, so
To Port: 53/UDP
To: <any> (traffic not restricted by source)
means to port 53/UDP anywhere.
Could you verify egress policies are active on your cluster?
@arthurk If this is still a problem on the latest version and you've verified that your k8s proivder supports network policies for both ingress and egress please feel free to reopen.
Relevant part in the docs: https://zero-to-jupyterhub.readthedocs.io/en/latest/security.html#kubernetes-network-policies
I've restricted traffic to ports 53. However it is still possible to create a jupyterlab notebook and have outbound traffic to port 80:
This is with Kubernetes 1.9.7 on Google Cloud.
This could be because
To: <any> (traffic not restricted by source)
gets added, I'm not sure why.Contents of
config.yaml