kubernetes - Kubernetes 仪表板未创建 pod
问题描述
为什么这不创建 pod?我想测试仪表板,但我需要先按照github上的建议编辑端口类型。出于某种原因,它根本没有创建任何 pod。
知道这里有什么问题吗?
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
secret/kubernetes-dashboard-certs created
serviceaccount/kubernetes-dashboard created
role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
deployment.apps/kubernetes-dashboard created
service/kubernetes-dashboard created
root@osboxes:~/kubernetes-course/dashboard# kubectl get pods
No resources found in default namespace.
解决方案
原来这些 pod 在不同的命名空间下运行。我必须包含命名空间,然后它会显示 pod。
kubectl get pods --namespace=kube-system
推荐阅读
- deep-linking - 分支 LiveView 显示在页面加载时触发的链接
- android - 人脸识别认证android实现
- javascript - 滚动时在网格顶部保留表格标题
- asp.net-web-api - Xamarin Forms 条件语句
- asp.net-core - 如何从本地 nuget 包创建元包(所有包的包)?
- java - 以编程方式检查 domino 文档中的字段是 Text 还是 TextList - 可能吗?
- python - 使用 lightgbm 的特征重要性
- vue.js - Win10、VirtualBox、Ubuntu、Vue-cli 3 - 观看不工作
- jquery - 使用淡入淡出显示/隐藏内容
- python - 大型 WGAN-GP 训练损失