File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ func (b *FirewallModelBuilder) Build(c *fi.CloudupModelBuilderContext) error {
154154 t .Allowed = append (t .Allowed , fmt .Sprintf ("tcp:%d" , wellknownports .EtcdCiliumClientPort ))
155155 }
156156 }
157+ if b .NetworkingIsIPAlias () {
158+ t .Allowed = append (t .Allowed , fmt .Sprintf ("tcp:%d" , wellknownports .KubeControllerManagerMetricsPort ))
159+ t .Allowed = append (t .Allowed , fmt .Sprintf ("tcp:%d" , wellknownports .KubeSchedulerMetricsPort ))
160+ t .Allowed = append (t .Allowed , fmt .Sprintf ("tcp:%d" , wellknownports .KubeProxyMetricsPort ))
161+ t .Allowed = append (t .Allowed , fmt .Sprintf ("tcp:%d" , wellknownports .EtcdMetricsPort ))
162+ }
157163 c .AddTask (t )
158164 }
159165
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ const (
2020 // KubeAPIServer is the port where kube-apiserver listens.
2121 KubeAPIServer = 443
2222
23+ // EtcdMetricsPort is used to serve etcd metrics
24+ EtcdMetricsPort = 2382
25+
2326 // NodeupChallenge is the port where nodeup listens for challenges.
2427 NodeupChallenge = 3987
2528
@@ -90,6 +93,15 @@ const (
9093
9194 // KubeletAPI is the port where kubelet listens
9295 KubeletAPI = 10250
96+
97+ // KubeProxyMetricsPort is used by kube-proxy to expose metrics
98+ KubeProxyMetricsPort = 10249
99+
100+ // KubeSchedulerMetricsPort is used by kube-scheduler to expose metrics
101+ KubeSchedulerMetricsPort = 10259
102+
103+ // KubeControllerManagerMetricsPort is used by kube-controller-manager to expose metrics
104+ KubeControllerManagerMetricsPort = 10257
93105)
94106
95107type PortRange struct {
You can’t perform that action at this time.
0 commit comments