如何从 K8s API 获取 Kubernetes 集群名称 [英] How to get Kubernetes cluster name from K8s API

查看:131
本文介绍了如何从 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.

推荐答案

不幸的是,一个集群不知道它自己的名字,或者任何其他可以唯一标识它的东西 (K8s 问题 #44954).我想知道 helm issue #2055.

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆