Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PersistentVolumeClaim is not bound #20

Open
danil-demidov opened this issue Sep 19, 2017 · 3 comments
Open

PersistentVolumeClaim is not bound #20

danil-demidov opened this issue Sep 19, 2017 · 3 comments

Comments

@danil-demidov
Copy link

Hello.
I has been create kubernetes cluster ( https://www.linuxtechi.com/install-kubernetes-1-7-centos7-rhel7/#comment-1221 ).
I has been installed kubernetes dashboard.
Now, I trying to install consul, but I got error: PersistentVolumeClaim is not bound: "data-consul-0" (repeated 4 times)
I has been create "Persistent Volumes" (isshues blachniet) - it's didn't help.
What could be else the problem?

@Lax77
Copy link

Lax77 commented Sep 20, 2017

Am also seeing similar issue. Does it mean the volumeClaimTemplates config expecting the volume created explicitly prior to deploying the statefulset?

@tankchintan
Copy link

@danil-demidov @Lax77 Someone created a PR for resolving this. See here.

@elordahl
Copy link

elordahl commented Oct 7, 2017

There are a number of ways to resolve this. If you're using AWS, you could create an AWSElasticBlockStore storageClass and assign assign it to the volumeClaimTemplates spec as storageClassName (see below):

aws-example.yml

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: consul-storage
provisioner: kubernetes.io/aws-ebs
parameters:
  type: gp2

statefulsets/consul.yml

  volumeClaimTemplates:
    - metadata:
        name: data
       spec:
         storageClassName: consul-storage
     ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants