Skip to content

Commit

Permalink
fix: network policy for keda (#338)
Browse files Browse the repository at this point in the history
Co-authored-by: midnight47 <[email protected]>
  • Loading branch information
2 people authored and p1gmale0n committed Aug 24, 2023
1 parent fa2fd4d commit 56bc4cd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions terraform/layer2-k8s/eks-keda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,32 @@ module "keda_namespace" {
}
]
}
},
{
name = "allow-control-plane"
policy_types = ["Ingress"]
pod_selector = {
match_expressions = {
key = "app"
operator = "In"
values = ["keda-operator-metrics-apiserver"]
}
}
ingress = {
ports = [
{
port = "6443"
protocol = "TCP"
}
]
from = [
{
ip_block = {
cidr = "0.0.0.0/0"
}
}
]
}
}
]
}
Expand Down

0 comments on commit 56bc4cd

Please sign in to comment.