Skip to content

Commit 7142ec0

Browse files
committed
fix(networking): Ingress updates for Code interpreter
1 parent c43da3f commit 7142ec0

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

kubernetes/code-interpreter/values.yaml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff 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.
166169
networkPolicy:
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
181196
extraEnvVars: []

0 commit comments

Comments
 (0)