Reputation: 11
I am trying to run hlf operator to create a hyperledger network for my project. The issue is that all the pods get stuck due pvc issue. The pvc always remains in pending state. I tried installing csi driver for aws ebs but it doesn't help. These are my yaml files.
CSI Driver :
Storage Class :
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ebs-sc
provisioner: ebs.csi.aws.com
parameters:
type: gp2
volumeBindingMode: WaitForFirstConsumer
PVC :
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ebs-claim
spec:
accessModes:
- ReadWriteOnce
storageClassName: ebs-sc
resources:
requests:
storage: 4Gi
Pod:
apiVersion: v1
kind: Pod
metadata:
name: my-csi-app
spec:
containers:
- name: web-server
image: nginx
volumeMounts:
- mountPath: "/usr/share/nginx/html"
name: my-volume
volumes:
- name: my-volume
persistentVolumeClaim:
claimName: ebs-claim
Result :
The pv doesn't get created .
I would really appreciate some help on this. I've been struggling with this issue for a week now.
Upvotes: 0
Views: 940