Repository navigation
fix: allow egress to Kubernetes API server on port 6443 [RHDHBUGS-3926] - #3814
Conversation
Plugins that query cluster resources (Tekton, ArgoCD/GitOps, Topology, KServe model catalog, and any catalog provider or frontend plugin that lists or watches Kubernetes objects) need to reach the API server. On OpenShift and kubeadm clusters the API server listens on port 6443, which was blocked by the default-deny NetworkPolicy. Add port 6443 alongside the existing port 443 in the allow-https-egress policy. The rule has no destination selector, matching the existing 443 pattern — port 6443 is exclusively used by kube-apiserver, and RBAC on the ServiceAccount is the real access-control boundary.
|
PR Summary by QodoAllow Kubernetes API egress on TCP port 6443
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
|
/cherrypick release-2.1 |
|
@rm3l: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Code Review by Qodo
1. Docs leave the 6443 change undated
|
|
Important The |
|
✅ PR images built and pushed successfully! Images are available for testing (expires in 7 days):
|
|
/lgtm |
|
@rm3l: new pull request created: #3830 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |



Description
See https://redhat-internal.slack.com/archives/C04CUSD4JSG/p1791554696886209
Add port 6443 (Kubernetes API server) to the
allow-https-egressdefault NetworkPolicy alongside the existing port 443.Plugins that query cluster resources — Tekton, ArgoCD/GitOps, Topology, KServe model catalog, and any catalog provider or frontend plugin that lists or watches Kubernetes objects — need to reach the API server. On OpenShift and kubeadm clusters the API server listens on port 6443, which was blocked by the default-deny NetworkPolicy. On some managed platforms (GKE, EKS) the API server listens on 443 instead, which was already allowed.
The rule has no destination selector, matching the existing port 443 pattern. Port 6443 is exclusively used by kube-apiserver, and RBAC on the ServiceAccount is the real access-control boundary — not NetworkPolicy.
Which issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer
allow-https-egressNetworkPolicy on the RHDH pod now includes both ports 443 and 6443.Container Images
Container images are built and pushed to Quay automatically when relevant files change.
Image links will be posted in a PR comment once the push completes.