Kubernetes pod pending when a new volume is attached (EKS)

后端 未结 3 651
暖寄归人
暖寄归人 2021-01-04 11:05

Let me describe my scenario:

TL;DR

When I create a deployment on Kubernetes with 1 attached volume, everything works perfectly. When I create the same depl

3条回答
  •  自闭症患者
    2021-01-04 11:24

    See this article: https://kubernetes.io/blog/2018/10/11/topology-aware-volume-provisioning-in-kubernetes/

    The gist is that you want to update your storageclass to include:

    volumeBindingMode: WaitForFirstConsumer
    

    This causes the PV to not be created until the pod is scheduled. It fixed a similar problem for me.

提交回复
热议问题