Search code examples
listkubernetesscalenode-pools

List/Scale Node Pools using kubernetes-client java


Is there a way to scale/list node pools for a specific project ID using kubernetes-client java or kubernetes-client-extended libraries.?

I tried searching for APIs present inside kubernetes-client java library but didn't got any.

Link : https://github.com/kubernetes-client/java


Solution

  • If you are using GKE then refer to this doc to add or manage the node pools or verify this instance's methods of creating a node pool, auto scaling the node pools.

    You can also find more client libraries of kubernetes here.

    Edit 1: seems to be there is no direct or generic library to list/scale node pools but in GKE we are having an option called resize Google Kubernetes Engine (GKE) Standard clusters. You can resize a cluster to increase or decrease the number of nodes in that cluster.

    You can also use GKE's cluster autoscaler feature that automatically resizes your node pools in response to changing conditions, such as changes in your workloads and resource usage.

    Edit 2: there is no native k8s library available to list or scale node pools.

    You can raise your issue here

    These are the officially available kubernetes client libraries and link for java client Library