使用kubernetes-client java列出/扩展节点池

huangapple go评论77阅读模式
英文:

List/Scale Node Pools using kubernetes-client java

问题

有没有一种方法可以使用kubernetes-client java或kubernetes-client-extended库来扩展/列出特定项目ID的节点池?

我尝试搜索kubernetes-client java库中是否存在相关API,但没有找到。

链接:https://github.com/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

答案1

得分: 1

如果您正在使用GKE,请参考此文档来添加或管理节点池,或验证创建节点池的此实例的方法,以及自动调整节点池。

您还可以在kubernetes的客户端库中找到更多客户端库。

编辑 1:似乎没有直接或通用的库来列出/调整节点池,但在GKE中,我们有一个名为调整Google Kubernetes Engine (GKE)标准集群大小的选项。您可以调整集群大小以增加或减少该集群中的节点数量。

您还可以使用GKE的集群自动缩放器功能,根据工作负载和资源使用情况的变化自动调整节点池的大小。

编辑 2:没有可用于列出或调整节点池的原生k8s库。

您可以在此处提出您的问题。

这些是官方提供的kubernetes客户端库,以及Java客户端库的链接。

英文:

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

huangapple
  • 本文由 发表于 2023年1月9日 18:20:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75055831.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定