From c00a5288a90a69bffa6c416cc024c67bb4534223 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sun, 19 Nov 2023 00:39:51 +0000 Subject: [PATCH] curvenote: remove networkpolicy hacks Switched to using Calico for network policies, which should be a full implementation instead of the partial implementation in the AWS VPC-CNI --- config/curvenote.yaml | 54 ------------------------------------------- 1 file changed, 54 deletions(-) diff --git a/config/curvenote.yaml b/config/curvenote.yaml index a2cb10881..62b8efe34 100644 --- a/config/curvenote.yaml +++ b/config/curvenote.yaml @@ -171,65 +171,11 @@ binderhub: image_pull_policy: Always extraPodSpec: priorityClassName: binderhub-core - networkPolicy: - ingress: - # AWS VPC CNI only works if the name of the service port name is the same as - # the name of the pod port and the port number is the same - # https://docs.aws.amazon.com/eks/latest/userguide/cni-network-policy.html#cni-network-policy-considerations - - from: - - podSelector: - matchLabels: - hub.jupyter.org/network-access-hub: "true" - # For unknown reasons the hub <-> notebook traffic is partially blocked if - # this is included: - # ports: - # # service/hub port name is "hub" - # # pod/hub port name is "http" - # - port: 8081 - # protocol: TCP - - singleuser: - networkPolicy: - ingress: - # AWS VPC CNI only works if the name of the service port name is the same as - # the name of the pod port and the port number is the same - # https://docs.aws.amazon.com/eks/latest/userguide/cni-network-policy.html#cni-network-policy-considerations - - from: - - podSelector: - matchLabels: - hub.jupyter.org/network-access-singleuser: "true" - ports: - # proxy/pod port name is "notebook-port" - # I've no idea why that doesn't work - - port: 8888 - protocol: TCP proxy: chp: extraPodSpec: priorityClassName: binderhub-core - networkPolicy: - ingress: - # AWS VPC CNI only works if the name of the service port name is the same as - # the name of the pod port and the port number is the same - # https://docs.aws.amazon.com/eks/latest/userguide/cni-network-policy.html#cni-network-policy-considerations - - from: - - podSelector: - matchLabels: - hub.jupyter.org/network-access-proxy-api: "true" - ports: - # service/proxy-api port doesn't have a name - # proxy/pod port name is "api" - - port: 8001 - protocol: TCP - - from: - ports: - # service/proxy-public port is 80 - # proxy/pod port is 8000 - - port: 8000 - protocol: TCP - - port: 80 - protocol: TCP ingress: hosts: