File tree Expand file tree Collapse file tree
kubernetes/code-interpreter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,19 +163,34 @@ readinessProbe:
163163 failureThreshold : 3
164164
165165# Network Policy
166+ # Note: this policy applies to the code-interpreter SERVICE pod, not the
167+ # ephemeral executor pods. Executor pods are locked down separately by the
168+ # `*-executor` NetworkPolicy in templates/networkpolicy.yaml.
166169networkPolicy :
167170 enabled : true
168171 policyTypes :
169172 - Ingress
170173 - Egress
171- ingress : []
174+ ingress :
175+ # Allow ingress on the HTTP port from anywhere in the cluster (so the
176+ # api-server pods can call us) AND from the node itself (so the kubelet
177+ # health probes succeed). An empty `from` matches all sources.
178+ - ports :
179+ - protocol : TCP
180+ port : 8000
172181 egress :
173- # Allow DNS
182+ # DNS
183+ - ports :
184+ - protocol : UDP
185+ port : 53
186+ - protocol : TCP
187+ port : 53
188+ # Kubernetes API server — required for the kubernetes executor backend
189+ # to create/exec/delete executor pods. The api-server is reached on TCP
190+ # 443 inside the cluster.
174191 - ports :
175- - protocol : UDP
176- port : 53
177- - protocol : TCP
178- port : 53
192+ - protocol : TCP
193+ port : 443
179194
180195# Extra environment variables
181196extraEnvVars : []
You can’t perform that action at this time.
0 commit comments