ECK 1.0 with on premise K8s

Hi,
I have installed a basic k8s cluster with kubeadm; cluster node state is ready and I can deploy an nginx image.. so far so good.

Next I installed the elastic operator (1.0.0-beta1) using the steps described on: https://www.elastic.co/downloads/elastic-cloud-kubernetes

The operator seems to install fine and I can launch a kibana instance. However elasticsearch pods remain in pending state and the error message I get is:
pod has unbound immediate PersistentVolumeClaims

If i type kubectl describe pvc elastic i get:
no persistent volumes available for this claim and no storage class is set

I tried creating a pv but with no success. Does anybody have an idea what I am doing wrong?

Solved it:

The storageClassName: directive was not consistent. Both in the pv declaration as the elastic quickstart yaml it needed to be set.

Here is my elastic yaml file, maybe it helps other newbies:

apiVersion: elasticsearch.k8s.elastic.co/v1beta1
kind: Elasticsearch
metadata:
name: elasticsearch-sample
spec:
version: 7.4.0
nodeSets:

  • name: default
    config:
    node.attr.attr_name: attr_value
    node.master: true
    node.data: true
    node.ingest: true
    node.ml: true
    node.store.allow_mmap: false
    podTemplate:
    metadata:
    labels:
    foo: bar
    spec:
    containers:
    - name: elasticsearch
    resources:
    limits:
    memory: 2Gi
    cpu: 1
    env:
    - name: ES_JAVA_OPTS
    value: "-Xms1g -Xmx1g"
    count: 1
    volumeClaimTemplates:
    • metadata:
      name: elasticsearch-data
      spec:
      accessModes:
      • ReadWriteOnce
        resources:
        requests:
        storage: 5Gi
        storageClassName: manual