fix(ai2/hermes): permit post-dnat apiserver egress on port 6443 in networkpolicy #16

Open
hermes wants to merge 0 commits from hermes/k3s-manifests:feat/clone-hermes-and-tools-ai2 into main
Contributor

In k3s, requests to the Kubernetes Service ClusterIP (10.43.0.1:443) are DNATed by Flannel/kube-proxy to node IPs on port 6443 (10.0.0.0/16:6443). The previous NetworkPolicy egress rule excluded RFC1918 addresses from port 443 egress, which caused apiserver connections to be refused post-DNAT. This fix adds explicit egress rules for 10.43.0.0/16 and 10.0.0.0/16 on both ports 443 and 6443.

In k3s, requests to the Kubernetes Service ClusterIP (`10.43.0.1:443`) are DNATed by Flannel/kube-proxy to node IPs on port 6443 (`10.0.0.0/16:6443`). The previous NetworkPolicy egress rule excluded RFC1918 addresses from port 443 egress, which caused apiserver connections to be refused post-DNAT. This fix adds explicit egress rules for `10.43.0.0/16` and `10.0.0.0/16` on both ports 443 and 6443.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u feat/clone-hermes-and-tools-ai2:hermes-feat/clone-hermes-and-tools-ai2
git switch hermes-feat/clone-hermes-and-tools-ai2

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff hermes-feat/clone-hermes-and-tools-ai2
git switch hermes-feat/clone-hermes-and-tools-ai2
git rebase main
git switch main
git merge --ff-only hermes-feat/clone-hermes-and-tools-ai2
git switch hermes-feat/clone-hermes-and-tools-ai2
git rebase main
git switch main
git merge --no-ff hermes-feat/clone-hermes-and-tools-ai2
git switch main
git merge --squash hermes-feat/clone-hermes-and-tools-ai2
git switch main
git merge --ff-only hermes-feat/clone-hermes-and-tools-ai2
git switch main
git merge hermes-feat/clone-hermes-and-tools-ai2
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mitko/k3s-manifests!16
No description provided.