You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AKS Windows节点Pod因双SubPath卷挂载陷入终止状态求助

AKS Windows节点多SubPath卷挂载Pod替换后无法终止问题

在AKS Windows节点上,当Pod配置两个带SubPath的卷挂载时,执行删除/替换操作后Pod会陷入终止状态;仅配置单个带SubPath的卷挂载时无此问题。

复现步骤

  1. 提前创建对应ConfigMap,然后创建包含以下卷及卷挂载的Deployment:
volumeMounts:
            - name: configs
              mountPath: C:\inetpub\wwwroot\web.config
              subPath: web.config
            - name: cloudconfig
              mountPath: C:\CloudConfig
              subPath: credentials
      volumes:
        - name: configs
          configMap:
            name: test-report-executor-cm
        - name: cloudconfig
          configMap:
            name: cloud-config
  1. 执行命令:
kubectl replace -n namespace -f filename.yaml --force

预期与实际行为

  • 预期行为:Pod不应陷入终止状态
  • 实际情况:Pod已持续5天以上处于终止状态

环境信息

  • CLI版本:v1.27.7
  • Kubernetes版本:1.27.7

补充说明

尝试通过more C:\k\kubelet.log查看kubelet日志,但仅显示kubelet相关基础信息,无有效错误日志。

内容的提问来源于stack exchange,提问作者Daemon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.23 14:24:50