bhouse-nexthop opened a new issue, #14915:
URL: https://github.com/apache/cloudstack/issues/14915

   ### Problem
   
   The cluster autoscaler never scales a CKS cluster that is owned by a 
project. Its log repeats:
   
   ```
   Unable to fetch cluster with id : <cluster id>
   ```
   
   There is no authentication error. The autoscaler's CloudStack provider calls 
`listKubernetesClusters` with only
   `id`, using the key CKS gives it (the project's Kubernetes service account, 
a member of the project). A list by id
   without `projectid` only searches the caller's own account, so the response 
is an empty list. With
   `projectid=<project>` the same key finds the cluster.
   
   The provider reads `project-id` from the cloud-config CKS writes, but does 
not send it. Released autoscaler images,
   including the one on the CKS ISOs, all behave this way.
   
   ### Steps to reproduce
   
   1. Create a CKS cluster in a project and enable autoscaling (for example min 
1, max 3).
   2. Start pods that need a second worker.
   3. The cluster stays at one worker; the autoscaler logs "Unable to fetch 
cluster with id".
   
   ### Expected
   
   The autoscaler finds its cluster and scales it, as it does for a cluster 
owned by an account.
   


-- 
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]

Reply via email to