0s Warning FailedScheduling pod/quickstart-es-default-0 0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims.
0s Normal FailedBinding persistentvolumeclaim/elasticsearch-data-quickstart-es-default-0 no persistent volumes available for this claim and no storage class is set
do I need to create pv and pvc or Need to edit the deployment. so if yo show me the commands help me a lot of.
Can you show the manifest you are using (output of kubectl get -o yaml es quickstart)? From the error I'd guess that either the storage class you specified doesn't exist or maybe there is no (default) storage class defined? You can check both with kubectl get sc.
There should be no need to create PV/PVC manually nor edit the Deployment resource.
Your Elasticsearch resource looks fine, but the issue seems to be that there are is no storage class defined. You can read more in our docs. If you just want to get it running right now, you can consider using emptyDir - see the bottom of the page I've linked. Note that this is not recommended for any production use, but can unblock you until you figure out the storage class part.
Got this error now: "0/3 nodes are available: 3 node(s) didn't find available persistent volumes to bind"
So, as doc says, I've created storageclass and pv (Local Storage):
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
persistentvolume/elasticsearch 5Gi RWO Retain Available local-storage 49m
persistentvolume/elasticsearch-data 5Gi RWO Retain Available local-storage 20h
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
elasticsearch kubernetes.io/no-provisioner Delete WaitForFirstConsumer false 19h
elasticsearch-data kubernetes.io/no-provisioner Delete WaitForFirstConsumer false 19h
So I dont know what else I need. this my storageclass:
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.