Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions helm/codeapi/templates/network-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ spec:
- ports:
- protocol: TCP
port: {{ .Values.api.service.port }}
{{- with (.Values.networkPolicy.api | default dict).ingressFrom }}
from:
{{- toYaml . | nindent 8 }}
{{- end }}
egress:
- to:
- namespaceSelector: {}
Expand Down
6 changes: 6 additions & 0 deletions helm/codeapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -539,5 +539,11 @@ networkPolicy:
# egress on the configured Redis port to any destination because standard
# Kubernetes NetworkPolicy cannot target redis.external.host by DNS name.
externalCIDRs: []
api:
# NetworkPolicy peers allowed to reach the API, e.g. only the pods of the
# application that calls it. Include your ingress controller when
# ingress.enabled, and Prometheus when metrics.enabled, as both use the
# same port. Empty allows any source.
ingressFrom: []
toolCallServer:
allowExternalEgress: false # Allow tool call server to reach external APIs