Skip to content

exec ./cluster-autoscaler: argument list too long #125

@laurentpellegrino

Description

@laurentpellegrino

Using a kubernetes.tf that defines 22 cluster_autoscaler_nodepools, cluster-autoscaler pods crash in loop:

$ kubectl get pods --all-namespaces | grep autoscaler
kube-system cluster-autoscaler-hetzner-cluster-autoscaler-695f679f4b-55wwn 0/1 CrashLoopBackOff 7 (37s ago) 11m
kube-system cluster-autoscaler-hetzner-cluster-autoscaler-695f679f4b-9t5kw 0/1 CrashLoopBackOff 7 (3m31s ago) 14m
kube-system cluster-autoscaler-hetzner-cluster-autoscaler-84bdf5d844-v2znd 1/1 Running 10 (14h ago) 38d

Here are logs from a failing pod:

$ kubectl logs cluster-autoscaler-hetzner-cluster-autoscaler-695f679f4b-55wwn -n kube-system
exec ./cluster-autoscaler: argument list too long

The issue seems to come from the way nodepool configurations are passed. Is there a way to increase the argument list limit or pass data differently so that autoscaler starts smoothly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions