ECK - EFS Issue

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?

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

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

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