Hey guys, I’m creating an Eks cluster with a manag...
# aws
a
Hey guys, I’m creating an Eks cluster with a managed node group, and it has a scaling config attribute to add to the code. for some reason i can’t find how to add metrics to use for the scaling config that will actually decide when the scaling occurs. this is the pulumi code for the nodegroup:
Copy code
eks_node_group = aws.eks.NodeGroup(
    'eks-node-group',
    cluster_name=eks_cluster,
    node_group_name='pulumi-eks-nodegroup',
    node_role_arn=iam.ec2_role.arn,
    opts=pulumi.ResourceOptions(depends_on=[eks_cluster]),
    subnet_ids=[
        vpc.subnet_ids[1],
        vpc.subnet_ids[2],
        ],
    tags={
        'Name': 'pulumi-cluster-nodeGroup',
    },
    scaling_config=aws.eks.NodeGroupScalingConfigArgs(
        desired_size=2,
        max_size=10,
        min_size=1,
    ),
)
as of now, the scaling does not happen when the node reaches high cpu usage, so we need to add one node manually. can someone help me figure out how to create the scaling the right way? in a managed node group im not using any launch templates that are using an auto scaling group.