satishglondhe commented on issue #5976:
URL: https://github.com/apache/cloudstack/issues/5976#issuecomment-1044017218
Hi @davidjumani , I have described the autoscaler deployment below. I
checked for the policy, it was already set to 'Always', tried deleting the pods
many times. Gives the same "failed to get node infos for groups" every time. I
checked for the names of instances in Cloud Stack and in cluster, the names
match.
`kubectl describe deployment cluster-autoscaler -n kube-system`
Name: cluster-autoscaler
Namespace: kube-system
CreationTimestamp: Thu, 17 Feb 2022 14:58:39 +0000
Labels: app=cluster-autoscaler
Annotations: deployment.kubernetes.io/revision: 1
Selector: app=cluster-autoscaler
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0
unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: app=cluster-autoscaler
Annotations: prometheus.io/port: 8085
prometheus.io/scrape: true
Service Account: cluster-autoscaler
Containers:
cluster-autoscaler:
Image: shapeblue/cloudstack-k8s-autoscaler:v1.0.0
Port: <none>
Host Port: <none>
Command:
./cluster-autoscaler
--v=4
--stderrthreshold=info
--cloud-provider=cloudstack
--cloud-config=/config/cloud-config
--skip-nodes-with-local-storage=false
--nodes=1:2:fd55e9d4-474b-49c1-9d96-7721f78765ac
Limits:
cpu: 100m
memory: 300Mi
Requests:
cpu: 100m
memory: 300Mi
Environment: <none>
Mounts:
/config from cloud-config (ro)
Volumes:
cloud-config:
Type: Secret (a volume populated by a Secret)
SecretName: cloudstack-secret
Optional: false
Conditions:
Type Status Reason
---- ------ ------
Progressing True NewReplicaSetAvailable
Available True MinimumReplicasAvailable
OldReplicaSets: <none>
NewReplicaSet: cluster-autoscaler-6cc66979cd (1/1 replicas created)
Events: <none>
`kubectl get nodes -o wide`
NAME STATUS ROLES AGE VERSION
INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION
CONTAINER-RUNTIME
aqua-control-17f08219ac4 Ready control-plane,master 15h v1.22.2
10.1.1.105 <none> Debian GNU/Linux 11 (bullseye) 5.10.0-8-amd64
docker://20.10.8
aqua-node-17f0821c72b Ready <none> 15h v1.22.2
10.1.1.209 <none> Debian GNU/Linux 11 (bullseye) 5.10.0-8-amd64
docker://20.10.8
Instance Names in Cloudstack UI
aqua-control-17f08219ac4
aqua-node-17f0821c72b
I0218 06:45:36.546531 1 static_autoscaler.go:229] Starting main loop
I0218 06:45:36.546610 1 client.go:169] NewAPIRequest API request
URL:http://103.13.114.141:8080/client/api?apiKey=*&command=listKubernetesClusters&id=fd55e9d4-474b-49c1-9d96-7721f78765ac&response=json&signature=*
I0218 06:45:36.580456 1 client.go:175] NewAPIRequest response status
code:200
I0218 06:45:36.580868 1 cloudstack_manager.go:88] Got cluster :
&{fd55e9d4-474b-49c1-9d96-7721f78765ac aqua 1 2 1 1 [0xc000eda840 0xc000eda870]}
E0218 06:45:36.581008 1 static_autoscaler.go:271] Failed to get node
infos for groups: Unable to find node aqua-node-17f0821c72b in cluster
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]