This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch release/v1.3
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/release/v1.3 by this push:
     new 3c87a969cc feat(k8s, v1.3): deny pod-to-pod traffic inside the 
computing unit pool (#9319)
3c87a969cc is described below

commit 3c87a969ccb1ec39110a1320fe378ee50a6972c3
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Nov 5 01:57:18 2026 +0000

    feat(k8s, v1.3): deny pod-to-pod traffic inside the computing unit pool 
(#9319)
    
    ### What changes were proposed in this PR?
    
    Automated backport of #8777 to `release/v1.3`.
    
    Source: cf6faeb7b31ff3defeab77cc2bbd614035dabf82 ยท [automation
    run](https://github.com/apache/texera/actions/runs/41945466580)
    
    ### Any related issues, documentation, discussions?
    
    Backport of #8777.
    
    ### How was this PR tested?
    
    Release-branch CI runs on this branch once the build is fixed and this
    PR is marked ready for review.
    
    ### Was this PR authored or co-authored using generative AI tooling?
    
    No.
    
    Co-authored-by: ali risheh <[email protected]>
    Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
 .../workflow-computing-units-network-policy.yaml   | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git 
a/bin/k8s/templates/base/gateway/workflow-computing-units-network-policy.yaml 
b/bin/k8s/templates/base/gateway/workflow-computing-units-network-policy.yaml
new file mode 100644
index 0000000000..826c0d0830
--- /dev/null
+++ 
b/bin/k8s/templates/base/gateway/workflow-computing-units-network-policy.yaml
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# Denies traffic between pods in the computing unit pool so one computing unit 
cannot reach another.
+apiVersion: networking.k8s.io/v1
+kind: NetworkPolicy
+metadata:
+  name: {{ .Values.workflowComputingUnitPool.name }}-deny-cross-unit
+  namespace: {{ .Values.workflowComputingUnitPool.namespace }}
+spec:
+  podSelector: {}
+  policyTypes:
+    - Ingress
+  ingress:
+    - from:
+        - namespaceSelector:
+            matchExpressions:
+              - key: kubernetes.io/metadata.name
+                operator: NotIn
+                values:
+                  - {{ .Values.workflowComputingUnitPool.namespace }}

Reply via email to