This commit is contained in:
Amit Gujar 2025-09-18 04:45:36 -07:00 committed by GitHub
commit 4a911789ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,8 @@ metadata:
labels:
k8s-addon: cluster-autoscaler.addons.k8s.io
k8s-app: cluster-autoscaler
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::<account_number>:role/<YOUR_IAM_ROLE_NAME>
name: cluster-autoscaler
namespace: kube-system
---
@ -163,6 +165,9 @@ spec:
- --skip-nodes-with-local-storage=false
- --expander=least-waste
- --node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/<YOUR CLUSTER NAME>
env:
- name: AWS_REGION
value: ap-south-1 # Change to your AWS region
volumeMounts:
- name: ssl-certs
mountPath: /etc/ssl/certs/ca-certificates.crt # /etc/ssl/certs/ca-bundle.crt for Amazon Linux Worker Nodes