# ECK 1.0 with on premise K8s

**URL:** <https://discuss.elastic.co/t/eck-1-0-with-on-premise-k8s/209745>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [November 27, 2019, 6:32pm UTC](https://discuss.elastic.co/t/eck-1-0-with-on-premise-k8s/209745 "2019-11-27T18:32:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikaposi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikaposi/32/58438_2.png) [@ikaposi](https://discuss.elastic.co/u/ikaposi)\
**Post date:** [November 27, 2019, 6:32pm UTC](https://discuss.elastic.co/t/eck-1-0-with-on-premise-k8s/209745/1 "2019-11-27T18:32:16Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![ikaposi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikaposi/32/58438_2.png) [@ikaposi](https://discuss.elastic.co/u/ikaposi)\
**Post date:** [November 27, 2019, 7:51pm UTC](https://discuss.elastic.co/t/eck-1-0-with-on-premise-k8s/209745/2 "2019-11-27T19:51:33Z")

</div>

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](http://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

---

<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:** [November 4, 2022, 7:35am UTC](https://discuss.elastic.co/t/eck-1-0-with-on-premise-k8s/209745/3 "2022-11-04T07:35:16Z")

</div>


