persistentvolumeclaim "esdata1" not found or pod has unbound PersistentVolumeClaims

4/13/2019

This is my docker-compose.yml file

version: '3'
services:
  elasticsearch:
      image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0
      container_name: elasticsearch
      environment:
        - cluster.name=elstic-cluster
        - bootstrap.memory_lock=true
        - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      ulimits:
        memlock:
          soft: -1
          hard: -1
      volumes:
        - esdata1:/usr/share/elasticsearch/data
      ports:
        - 9200:9200
      networks:
        - hcnet

I am getting the error : "persistentvolumeclaim "esdata1" not found Back-off restarting failed container"

But pvc "esdata1" created .Why this issue is coming ?

enter image description here

enter image description here

-- PRUDHVI CHOWDHARY NEKKALAPUDI
docker
kubernetes

0 Answers