Skip to content

Commit

Permalink
Add ingress rule in nodes Security Group to allow access to the Kubel…
Browse files Browse the repository at this point in the history
…et API when using ENI mode (#1021)
  • Loading branch information
iuriaranda authored Feb 5, 2025
1 parent 64fd376 commit 538b957
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add ingress rule in nodes Security Group to allow access to the Kubelet API when using ENI mode. This is needed by the metrics server to gather metrics from the Kubelet

## [1.3.6] - 2025-01-27

### Changed
Expand Down
8 changes: 8 additions & 0 deletions helm/cluster-aws/templates/_aws_cluster.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ spec:
fromPort: -1
toPort: -1

# We could also use `sourceSecurityGroupIds` here, but the ID of the "<cluster>-pods" security group isn't known yet
cidrBlocks: {{ required "global.connectivity.network.pods.cidrBlocks is required" .Values.global.connectivity.network.pods.cidrBlocks | toYaml | nindent 10 }}
additionalNodeIngressRules:
- description: "Allow traffic from Pods to the Kubelet API running on the nodes"
protocol: "tcp"
fromPort: 10250
toPort: 10250

# We could also use `sourceSecurityGroupIds` here, but the ID of the "<cluster>-pods" security group isn't known yet
cidrBlocks: {{ required "global.connectivity.network.pods.cidrBlocks is required" .Values.global.connectivity.network.pods.cidrBlocks | toYaml | nindent 10 }}
{{- end }}
Expand Down

0 comments on commit 538b957

Please sign in to comment.