GithubHelp home page GithubHelp logo

Comments (7)

krancour avatar krancour commented on July 23, 2024

If this happens to be on minikube, then this could be a duplicate of #13, which also mentions a workaround.

from consul-helm.

kolesoffac avatar kolesoffac commented on July 23, 2024

If this happens to be on minikube, then this could be a duplicate of #13, which also mentions a workaround.

No, this to be on typical kubernetes cluster. It was install from scratch.

from consul-helm.

krancour avatar krancour commented on July 23, 2024

Sorry... I jumped the gun... the title of the PR looked so familiar to #13.

I'm looking more closely at your kubectl describe pvc and is says:

no persistent volumes available for this claim and no storage class is set

PersistentVolumeClaims must do one of three things:

  1. Make a claim on an existing PV
  2. Dynamically provision a new PV by making mention of the StorageClass that should be utilized in that process
  3. Dynamically provision a new PV by relying on the cluster's default storage class.

By default, this chart utilizes situation no.3. But it would seem, perhaps, that your cluster does not actually have a default StorageClass defined.

What do you get when you do the following?

$ kubectl get storageclasses

from consul-helm.

kolesoffac avatar kolesoffac commented on July 23, 2024
NAME                      PROVISIONER                    AGE
local-storage (default)   kubernetes.io/no-provisioner   129m

I add this manually sc local-storage:

{
  "kind": "StorageClass",
  "apiVersion": "storage.k8s.io/v1",
  "metadata": {
    "name": "local-storage",
    "annotations": {
      "storageclass.kubernetes.io/is-default-class": "true"
    }
  },
  "provisioner": "kubernetes.io/no-provisioner",
  "reclaimPolicy": "Delete",
  "volumeBindingMode": "WaitForFirstConsumer"
}

from consul-helm.

krancour avatar krancour commented on July 23, 2024

Do you have any better luck if you install / upgrade the chart with --set server.storageClass=local-storage?

Have you tried to manually define a PVC that uses that storage class to verify it works?

from consul-helm.

kolesoffac avatar kolesoffac commented on July 23, 2024

Do you have any better luck if you install / upgrade the chart with --set server.storageClass=local-storage?

Already try with same result pending.

Have you tried to manually define a PVC that uses that storage class to verify it works?

I complete this. And this is work.

Why dont auto create new pv for consul pods?

from consul-helm.

adilyse avatar adilyse commented on July 23, 2024

It looks like the type of storage you are using is the limiting factor in this case. The StatefulSet will try to create the persistent volumes, but this only works with StorageClass types that are able to be dynamically provisioned. The Local storage type doesn't meet this requirement.

I've added some information to the docs to make this requirement more clear. Hope that helps!

from consul-helm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.