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, , . , . , .