Kubernetes AWS EBS Timeout Waiting for Volume State

If I create this pod:

apiVersion: v1
kind: Pod
metadata:
name: dsm-manager
spec:
containers:
- name: dsm-manager
image: ******
imagePullPolicy: Always
command:
- /sbin/init
volumeMounts:
- mountPath: /srv/project/DSMManager/snapshots
name: dsm-snapshot-storage
volumes:
- name: dsm-snapshot-storage
awsElasticBlockStore:
volumeID: aws://us-west-2b/vol-43e44482
fsType: ext4
imagePullSecrets:
- name: dockerregistrykey

It always works, but if I delete it and recreate it, it will get stuck with the "CreateContainer" status. A look at the events gives:
-Unable to mount volumes for the pod "dsm-manager_default": timeout waiting for the volume state
-Error syncing pod, skip: timeout waiting for the volume state

, , . , , aws cli, , . , . , .

+4
2

, ​​ Kubernetes EBS PR # 14493. , , , .

+5

Kubernetes EBS . , , EBS, Kubernetes. "" EBS , , . , Nordstrom, Kubernetes, .

AWS , Ec2 "", EBS. !

0

Source: https://habr.com/ru/post/1607546/


All Articles