Skip to content

Commit

Permalink
Fix traefik netpol annotation key
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond authored and Sarthak Kumar committed Aug 19, 2024
1 parent a797877 commit 070dbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rke2/np.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ var defaultKubeSystemPolicies = []policyTemplate{
{
// allows for all http and https traffic into the kube-system namespace to the traefik ingress controller pods
name: "default-network-traefik-policy",
annotationKey: "np.rke2.io/ingress",
annotationKey: "np.rke2.io/traefik",
podSelector: metav1.LabelSelector{MatchLabels: labels.Set{"app.kubernetes.io/name": "rke2-traefik"}},
ingress: []v1.NetworkPolicyIngressRule{
{
Expand Down

0 comments on commit 070dbe3

Please sign in to comment.