gpt4 book ai didi

azure - 升级 kubernetes 版本后无法从 pod 中查看日志

转载 作者:行者123 更新时间:2023-12-03 03:46:03 24 4
gpt4 key购买 nike

之前我可以使用 kubectl logs devops2-pdf-xxx 检查 pod 的日志。但是当我升级了 kubectl 版本后,我就无法这样做了。因此,看来服务运行得不好。

但是当我运行kubectl描述节点时,资源分配低于100%。

kubectl 日志 xxx:

Error from server: Get "https://aks-agentpool-123456-1:10250/containerLogs/default/devops2-deployment-123456-456/devops2-pdf": dial tcp 10.240.0.5:10250: i/o timeout

最佳答案

有多种选择可以解决此问题。这可能与关闭端口有关:

  • 首先,检查您的端口 10250 是否已打开。类似问题描述here
  • 您正在使用 AKS,因此请检查描述的解决方案 here :

Make sure that the default network security group isn't modified and that both port 22 and 9000 are open for connection to the API server. Check whether the tunnelfront pod is running in the kube-system namespace using the kubectl get pods --namespace kube-system command. If it isn't, force deletion of the pod and it will restart.

您也可以查看微软官方help page

These timeouts may be related to internal traffic between nodes being blocked. Verify that this traffic is not being blocked, such as by network security groups on the subnet for your cluster's nodes.

this one .

关于azure - 升级 kubernetes 版本后无法从 pod 中查看日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69175486/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com