kubernetes - 无需启动 Kubernetes 的 Kubectl 文档

标签 kubernetes documentation

我已经使用 Kubeadm 和 VirtualBox 在笔记本电脑上安装了 K8S 集群。集群必须启动并运行才能看到如下所示的文档,这似乎有点奇怪。

praveensripati@praveen-ubuntu:~$ kubectl explain pods
Unable to connect to the server: dial tcp 192.168.0.31:6443: connect: no route to host

有什么解决办法吗?

最佳答案

参见“kubectl explain — #HeptioProTip

Behind the scenes, kubectl just made an API request to my Kubernetes cluster, grabbed the current Swagger documentation of the API version running in the cluster, and output the documentation and object types.

尝试使用 kubectl help 作为离线替代方案,但这并不完整(仅限于 kubectl 本身)。

关于kubernetes - 无需启动 Kubernetes 的 Kubectl 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52490166/

相关文章:

kubernetes - 如何删除 Kubernetes 上下文?

linux - 由于系统中打开的文件太多,Kubernetes 无法启动

ssl - 允许 mutating webhook 与启用 tls 的 istio 一起工作

Java:JPQL 日期函数将时间段添加到另一个日期

cocoa - 是否还有另一个不错的 Cocoa 文档查看器,例如 "Ingredients",它还没有消失?

c# - 我应该如何记录我的 C# 代码?

c++ - VS2008 帮助 : How can I limit the index & search to just topics I want?

kubernetes - kong-ingress-controller 外部 IP 待定

documentation - 验证用户输入是否属于功能需求?

kubernetes - 如何使用 443/80 在 prem 上公开 kubernetes 服务