aws / amazon-network-policy-controller-k8s

Apache License 2.0
38 stars 10 forks source link

Network policy shows both v4 and v6 CIDR even though Cluster/instance and everything is v4 #136

Open vigneshsenapathy-hpe opened 6 days ago

vigneshsenapathy-hpe commented 6 days ago

Amazon network policy endpoint shows that there is V4 and V6 cidr even though the Cluster/Instance/Pod and everything is v4. This is a day 1 issue and needs to be fixed the code should be more like if you have v6 enabled then the policy should have v6, if it doesnt have a v6 CIDR enabled network policy shouldn't have it and take over ports. VPC CNI 1.18.x has 24 open port limitation and if we add both v4 and v6 then you have 12 ports each

Example policy

apiVersion: networking.k8s.aws/v1alpha1 kind: PolicyEndpoint metadata: creationTimestamp: "2024-10-03T14:48:49Z" generateName: policy_name generation: 19 name: -vl8w4 namespace: default ownerReferences:

Thanks,

Vignesh

haouc commented 5 days ago

@vigneshsenapathy-hpe thanks for reporting this issue. We will look into this and keep you updated.