Repository navigation
Conversation
…ache#8777) Adds a NetworkPolicy to the computing unit pool namespace so pods in the pool can no longer open connections to each other. Ingress from every other namespace is still allowed, so the gateway and the agent service reach computing units as before. - It selects every pod in the pool (`podSelector: {}`), not only computing units, so the image-validation and prepull pods the manager runs there can't reach a unit either. - It only restricts ingress. Egress from computing units (Postgres, LakeFS, object storage, DNS) doesn't change. - It is always deployed, with no values flag to turn it off: there is no deployment in which one computing unit should reach another. It is only enforced on clusters with a NetworkPolicy controller; without one the object exists but has no effect. - The template lives under `templates/base/gateway/`. None. Minikube with Calico, chart installed with `values-development.yaml`, two Kubernetes computing units: | From | To | Policy on | Policy removed | |---|---|---|---| | computing unit 1 | computing unit 2 (DNS and pod IP) | timed out | connected | | computing unit 2 | computing unit 1 | timed out | — | | non-CU pod in the pool namespace | computing unit 1 | timed out | — | | agent-service pod (`texera-dev`) | both computing units | connected | — | | throwaway pod in `texera-dev` | computing unit 1 | connected | — | | browser via gateway (`/wsapi/workflow-websocket`) | both computing units | connected, state events received | — | | computing unit 1 | Postgres, LakeFS, RustFS | connected | — | | Python UDF running on computing unit 2 (from the workspace) | another computing unit | timed out | — | `helm upgrade` recreates the policy after it's deleted (re-checked after dropping the flag), and `bin/k8s/tests/test_helm_values.sh` passes. Generated-by: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> (cherry picked from commit cf6faeb)
Contributor
Automated Reviewer SuggestionsBased on the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Backport of #8777 to
release/v1.2. The file is the same; it sits inbin/k8s/templates/because this branch does not havetemplates/base/gateway/.Any related issues, documentation, discussions?
Backport of #8777.
How was this PR tested?
helm templaterenders the policy on this branch.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Fable 5.2)