【问题标题】:Kubernetes pod not creating - Azure AKSKubernetes pod 未创建 - Azure AKS
【发布时间】:2022-10-07 02:26:39
【问题描述】:

我的 pod 卡在 ContainerCreating 状态。 pod的描述说:

  Type     Reason                  Age    From               Message
  ----     ------                  ----   ----               -------
  Normal   Scheduled               2m28s  default-scheduler  Successfully assigned namespacex/web.app-b7b8b6649-x2gg9 to akswin000002
  Warning  FailedCreatePodSandBox  24s    kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod \"web.app-b7b8b6649-x2gg9\": operation timeout: context deadline exceeded

经过一番研究,我可以找到命令

kubectl get ds -n kube-system

返回:

NAME                                    DESIRED   CURRENT   READY   UP-TO-DATE   
AVAILABLE   NODE SELECTOR   AGE
daemonset.apps/azure-ip-masq-agent      3         3         3       3            3           <none>          146d
daemonset.apps/csi-azuredisk-node       3         3         3       3            3           <none>          146d
daemonset.apps/csi-azuredisk-node-win   3         3         1       3            1           <none>          146d
daemonset.apps/csi-azurefile-node       3         3         3       3            3           <none>          146d
daemonset.apps/csi-azurefile-node-win   3         3         1       3            1           <none>          146d
daemonset.apps/kube-proxy               3         3         3       3            3           <none>          146d

在这里,我们可以看到 2 个部署已准备好 1 个,但需要 3 个。发生了什么以及如何解决?它部署在 AKS 服务上的 Windows 群集中。

  • 你能提供 .yaml 文件吗?

标签: kubernetes azure-aks


【解决方案1】:

因此,此守护程序集是 AKS 配置的一部分,因此 Windows 节点可以访问 Azure 存储上的存储。您的应用程序是否请求持久存储?此外,根据调度 pod 的节点的名称 (akswin000002),您拥有三个节点(并且与您提供的输出相匹配)。似乎两个 Windows 节点在启动这些守护程序时存在问题,但这些应该会在一段时间后得到解决。

你可以运行 kubectl get ds 然后用失败状态描述 ds 吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-14
    • 2020-12-25
    • 1970-01-01
    • 2016-02-04
    • 2015-09-01
    • 1970-01-01
    相关资源
    最近更新 更多