摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/debug-cluster/ 列举集群节点 调试的第一步是查看所有的节点是否都已正确注册。 运行 kubectl get nodes 验证你所希望看见的所有节点都能够显示 阅读全文
posted @ 2021-08-06 22:17
Varden
阅读(592)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/resource-metrics-pipeline/ 资源使用指标,例如容器 CPU 和内存使用率,可通过 Metrics API 在 Kubernetes 中获得。 这 阅读全文
posted @ 2021-08-06 21:44
Varden
阅读(132)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/debug-running-pod/ 检查 Pod 的日志 首先,查看受到影响的容器的日志: kubectl logs ${POD_NAME} ${CONTAINER_N 阅读全文
posted @ 2021-08-06 17:36
Varden
阅读(938)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/debug-service/ 对于新安装的 Kubernetes,经常出现的问题是 Service 无法正常运行。 你已经通过 Deployment(或其他工作负载控制器 阅读全文
posted @ 2021-08-06 16:52
Varden
阅读(277)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/debug-init-containers/ 检查 Init 容器的状态 显示你的 Pod 的状态: kubectl get pod <pod-name> 例如,状态 I 阅读全文
posted @ 2021-08-06 15:07
Varden
阅读(276)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/get-shell-running-container/ 获取容器的 Shell 获取正在运行容器的 Shell: kubectl exec -it shell-demo 阅读全文
posted @ 2021-08-06 14:59
Varden
阅读(663)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/determine-reason-pod-failure/ 读写终止消息 显示 Pod 的详细信息: kubectl get pod --output=yaml 输出结果 阅读全文
posted @ 2021-08-06 14:46
Varden
阅读(762)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/debug-application/ 诊断问题 故障排查的第一步是先给问题分类。问题是什么?是关于 Pods、Replication Controller 还是 Serv 阅读全文
posted @ 2021-08-06 14:01
Varden
阅读(288)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/debug-application-cluster/crictl/ FEATURE STATE: Kubernetes v1.11 [stable] crictl 是 CRI 兼容的容器运行时命令行接口。 你可以使用它来检 阅读全文
posted @ 2021-08-06 11:24
Varden
阅读(1663)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/access-application-cluster/configure-access-multiple-clusters/ 说明: 用于配置集群访问的文件有时被称为 kubeconfig 文件。 这是一种引用配置文件的通 阅读全文
posted @ 2021-08-06 10:22
Varden
阅读(253)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/ 创建一个包含两个容器的 Pod 在这个练习中,你会创建一个包含两个容器的 阅读全文
posted @ 2021-08-06 09:56
Varden
阅读(606)
评论(0)
推荐(0)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/access-application-cluster/list-all-running-container-images/ 列出所有命名空间下的所有容器 使用 kubectl get pods --all-namespac 阅读全文
posted @ 2021-08-06 09:16
Varden
阅读(1957)
评论(0)
推荐(1)
摘要:
参考:https://kubernetes.io/zh/docs/tasks/access-application-cluster/web-ui-dashboard/ Dashboard 是基于网页的 Kubernetes 用户界面。 你可以使用 Dashboard 将容器应用部署到 Kuberne 阅读全文
posted @ 2021-08-06 07:58
Varden
阅读(882)
评论(0)
推荐(0)

浙公网安备 33010602011771号