Stuck pending elasticdeployment pods

The storage class looks fine. If the persistent volume is correct (how did you create it?), you should make sure that your Elasticsearch resource contains volumeClaimTemplates part and it references your storage class name (see below). I didn't see it added in the output you've posted.

spec:
  nodeSets:
  - name: default
    count: 3
    volumeClaimTemplates:
    - metadata:
        name: elasticsearch-data
      spec:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 5Gi
        storageClassName: elasticsearch

Also, can you format any output using ```output goes here```? It'll be much easier to read.

1 Like