Skip to Main Content

Containers, Cloud Native & Kubernetes

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Cluster Autoscaler is not initializing

User_WCF8FMar 17 2023 — edited Mar 17 2023

I deployed cluster autoscaler, and it's running, but the logs are showing something failing, do we have any idea why it's happening and how to fix it.

Here I refer this document from oracle:- https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengusingclusterautoscaler.htm

As shown in document, I created a dynamic group and attached the necessary policies to it.
dynamic group name:-
oke-autoscaler-dyn-grp

Below are the policies I attached

Allow dynamic-group oke-autoscaler-dyn-grp to manage cluster-node-pools in compartment Devtest
Allow dynamic-group oke-autoscaler-dyn-grp to manage instance-family in compartment Devtest
Allow dynamic-group oke-autoscaler-dyn-grp to use subnets in compartment Devtest
Allow dynamic-group oke-autoscaler-dyn-grp to read virtual-network-family in compartment Devtest
Allow dynamic-group oke-autoscaler-dyn-grp to use vnics in compartment Devtest
Allow dynamic-group oke-autoscaler-dyn-grp to inspect compartments in compartment Devtest

Note:- Cluster, network everything are in same compartment.

Here are the status and the logs of Cluster Autocaler

$ kubectl -n kube-system get pod | grep cluster
cluster-autoscaler-f54bc7b7-4vqtf 1/1 Running 0 11m
cluster-autoscaler-f54bc7b7-ctsf2 1/1 Running 0 11m
cluster-autoscaler-f54bc7b7-wdqzg 1/1 Running 0 11m

$ k logs cluster-autoscaler-f54bc7b7-4vqtf -n kube-system | less
I0317 11:22:45.970299 1 main.go:413] Cluster Autoscaler 1.24.0
I0317 11:22:45.998590 1 leaderelection.go:248] attempting to acquire leader lease kube-system/cluster-autoscaler...
I0317 11:22:46.012973 1 leaderelection.go:352] lock is held by cluster-autoscaler-7f5b59b6bd-mjbkt and has not yet expired
I0317 11:22:46.012991 1 leaderelection.go:253] failed to acquire lease kube-system/cluster-autoscaler

Comments
Post Details
Added on Mar 17 2023
4 comments
730 views