Skip to content

Commit de8c550

Browse files
pwntrbryantbiggs
andauthored
feat: Add recommended security group rule for port 10251 to match EKS addon for metrics-server (#3562)
* add current metrics-server default port 10251 to the recommended security group rules, add TODO note to remove the metrics-server legacy port 4443 on the next breaking change * Update node_groups.tf Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com> --------- Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent 96dbaa0 commit de8c550

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

node_groups.tf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ locals {
117117
type = "ingress"
118118
self = true
119119
}
120-
# metrics-server
120+
# metrics-server, legacy port - TODO: remove this on the next breaking change at v22
121121
ingress_cluster_4443_webhook = {
122122
description = "Cluster API to node 4443/tcp webhook"
123123
protocol = "tcp"
@@ -126,6 +126,15 @@ locals {
126126
type = "ingress"
127127
source_cluster_security_group = true
128128
}
129+
# metrics-server, current EKS default port
130+
ingress_cluster_10251_webhook = {
131+
description = "Cluster API to node 10251/tcp webhook"
132+
protocol = "tcp"
133+
from_port = 10251
134+
to_port = 10251
135+
type = "ingress"
136+
source_cluster_security_group = true
137+
}
129138
# prometheus-adapter
130139
ingress_cluster_6443_webhook = {
131140
description = "Cluster API to node 6443/tcp webhook"

0 commit comments

Comments
 (0)