# ECK - EFS Issue

**URL:** <https://discuss.elastic.co/t/eck-efs-issue/294943>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [January 20, 2022, 11:11am UTC](https://discuss.elastic.co/t/eck-efs-issue/294943 "2022-01-20T11:11:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpsLon](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@OpsLon](https://discuss.elastic.co/u/OpsLon)\
**Post date:** [January 20, 2022, 11:11am UTC](https://discuss.elastic.co/t/eck-efs-issue/294943/1 "2022-01-20T11:11:15Z")

</div>

Hello,  
I can't get an Elasticsearch cluster running with efs as storageclass.  
Error messages:  
`0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims.`

`Back-off restarting failed container`

Is anyone familiar with the issue?

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: elasticsearch-sample
spec:
  version: 7.6.1
  nodeSets:
  - name: default
    count: 1
    config:
      node.master: true
      node.data: true
      node.ingest: true
      node.store.allow_mmap: false
    volumeClaimTemplates:
    - metadata:
        name: elasticsearch-data
      spec:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 5Gi
        storageClassName: efs-sc

```

The PvC and the pv are getting created.

PVC

```auto
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: elasticsearch-data-elasticsearch-sample-es-default-0
  namespace: default
  uid: 0beeea4e-ffff-4960-9f89-80b5b95659a4
  resourceVersion: '19298734'
  creationTimestamp: '2022-01-20T10:45:34Z'
  labels:
    common.k8s.elastic.co/type: elasticsearch
    elasticsearch.k8s.elastic.co/cluster-name: elasticsearch-sample
    elasticsearch.k8s.elastic.co/statefulset-name: elasticsearch-sample-es-default
  annotations:
    pv.kubernetes.io/bind-completed: 'yes'
    pv.kubernetes.io/bound-by-controller: 'yes'
    volume.beta.kubernetes.io/storage-provisioner: efs.csi.aws.com
  ownerReferences:
    - apiVersion: elasticsearch.k8s.elastic.co/v1
      kind: Elasticsearch
      name: elasticsearch-sample
      uid: 34fda501-20fe-494a-b8b7-87aaeca9e4d3
  finalizers:
    - kubernetes.io/pvc-protection
  managedFields:
    - manager: elastic-operator
      operation: Update
      apiVersion: v1
      time: '2022-01-20T10:45:34Z'
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:ownerReferences:
            .: {}
            k:{"uid":"34fda501-20fe-494a-b8b7-87aaeca9e4d3"}:
              .: {}
              f:apiVersion: {}
              f:kind: {}
              f:name: {}
              f:uid: {}
    - manager: kube-controller-manager
      operation: Update
      apiVersion: v1
      time: '2022-01-20T10:45:34Z'
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:annotations:
            .: {}
            f:pv.kubernetes.io/bind-completed: {}
            f:pv.kubernetes.io/bound-by-controller: {}
            f:volume.beta.kubernetes.io/storage-provisioner: {}
          f:labels:
            .: {}
            f:common.k8s.elastic.co/type: {}
            f:elasticsearch.k8s.elastic.co/cluster-name: {}
            f:elasticsearch.k8s.elastic.co/statefulset-name: {}
        f:spec:
          f:accessModes: {}
          f:resources:
            f:requests:
              .: {}
              f:storage: {}
          f:storageClassName: {}
          f:volumeMode: {}
          f:volumeName: {}
        f:status:
          f:accessModes: {}
          f:capacity:
            .: {}
            f:storage: {}
          f:phase: {}
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 5Gi
  volumeName: pvc-0beeea4e-ffff-4960-9f89-80b5b95659a4
  storageClassName: efs-sc
  volumeMode: Filesystem
status:
  phase: Bound
  accessModes:
    - ReadWriteOnce
  capacity:
    storage: 5Gi

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 17, 2022, 11:11am UTC](https://discuss.elastic.co/t/eck-efs-issue/294943/2 "2022-02-17T11:11:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
