Kubernetes仪表板中不可见部署 [英] Deployments not visible in Kubernetes Dashboard

查看:100
本文介绍了Kubernetes仪表板中不可见部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了这样的部署:

I've created a deployment like this:

kubectl run my-app --image=ecr.us-east-1.amazonaws.com/my-app:v1 -l name=my-app --replicas=1

现在我进入Kubernetes仪表板:

Now I goto the Kubernetes Dashboard:

https://172.0.0.1/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard

但是我在这里看不到my-app.

But I dont see my-app listed here.

是否可以使用Kubernetes仪表板查看部署?我想使用仪表板执行诸如查看部署的内存/CPU使用情况,检查日志等

Is it possible to use the Kubernetes Dashboard to view deployments? I'd like to use the dashboard to do things like view the deployments mem/cpu usage, check logs, etc

推荐答案

Kubernetes仪表板目前非常有限,仅支持ReplicationControllers.如果创建了ReplicationController,则将能够看到与其连接的Pod,检查其内存和CPU使用率,并查看其日志.

Kubernetes Dashboard is pretty limited at the moment, and only supports ReplicationControllers. If you create a ReplicationController then you will be able to see the Pods connected to it, check their memory and CPU usage, and view their logs.

正在进行改进Dashboard的工作,将来它应该支持ReplicationController之外的其他Kubernetes资源.您可以在 GitHub存储库.

Work is being done to improve Dashboard and in the future it should support other Kubernetes resources besides ReplicationControllers. You can see some mockups in the GitHub repo.

这篇关于Kubernetes仪表板中不可见部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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