【问题标题】:How can I get the node where the pod is located using kubernetes python client?如何使用kubernetes python客户端获取pod所在的节点?
【发布时间】:2022-11-30 16:14:53
【问题描述】:

我有一个 Pod 名称,我想使用 kubernetes python 客户端知道 Pod 的位置。 是否可以使用 kubernetes python 客户端来通过 Pod 获取节点名称? (就像kubectl get pod -o wide中的NODE列一样)

我参考了文档https://github.com/kubernetes-client/python/blob/master/kubernetes/README.md。但是我没有找到解决办法。

【问题讨论】:

    标签: python api kubernetes client


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2019-03-18
      • 2018-03-17
      • 1970-01-01
      • 1970-01-01
      • 2021-07-22
      • 1970-01-01
      • 1970-01-01
      • 2020-04-10
      • 1970-01-01
      相关资源
      最近更新 更多