本文介绍了如何从K8s API获取Kubernetes集群名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题中所述,是否可以从API中找到K8s集群名称?我环顾了API,找不到它.

As stated in the title, is it possible to find out a K8s cluster name from the API? I looked around the API and could not find it.

推荐答案

不幸的是,群集不知道它是自己的名字,或者其他任何可以唯一标识它的名字( K8版本#44954 ).我想了解帮助问题#2055 .

Unfortunately a cluster doesn't know it's own name, or anything else that would uniquely identify it (K8s issue #44954). I wanted to know for helm issue #2055.

这篇关于如何从K8s API获取Kubernetes集群名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:45