Giter Site home page Giter Site logo

Unable to attach or mount volumes: unmounted volumes=[storage-volume], unattached volumes=[storage-volume prometheus-alertmanager-token-ht648 config-volume]: failed to get Plugin from volumeSpec about helm-charts HOT 7 CLOSED

vmalhotra22 avatar vmalhotra22 commented on August 28, 2024
Unable to attach or mount volumes: unmounted volumes=[storage-volume], unattached volumes=[storage-volume prometheus-alertmanager-token-ht648 config-volume]: failed to get Plugin from volumeSpec

from helm-charts.

Comments (7)

monotek avatar monotek commented on August 28, 2024 1

Please prrovide all Infos requested by the issue template.

K8s version vnd so on.

What storage plugin do you use?
Does Our standard storage class exist?

from helm-charts.

vmalhotra22 avatar vmalhotra22 commented on August 28, 2024

anyone to pick this up please.

from helm-charts.

monotek avatar monotek commented on August 28, 2024

might help you mention the chart you're using.
the issue template is here for a reason ;-)

from helm-charts.

vmalhotra22 avatar vmalhotra22 commented on August 28, 2024

prometheus-community/helm-charts/charts/prometheus is the one am using to install prometheus.

from helm-charts.

vmalhotra22 avatar vmalhotra22 commented on August 28, 2024

kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.1", GitCommit:"7879fc12a63337efff607952a323df90cdc7a335", GitTreeState:"clean", BuildDate:"2020-04-08T17:38:50Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

am leaving that as Blank for storageclass.

am trying to use the existing PVC now but got same issue.


persistentVolume:
## If true, alertmanager will create/use a Persistent Volume Claim
## If false, use emptyDir
##
enabled: true

## alertmanager data Persistent Volume access modes
## Must match those of existing PV or dynamic provisioner
## Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
accessModes:
  - ReadWriteMany

## alertmanager data Persistent Volume Claim annotations
##
annotations: {}
#kubectl.kubernetes.io/last-applied-configuration: |
#  {"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{},"name":"storek8s"}}

## alertmanager data Persistent Volume existing claim name
## Requires alertmanager.persistentVolume.enabled: true
## If defined, PVC must be created manually before volume will be bound
existingClaim: "prom-alertmgr"

## alertmanager data Persistent Volume mount root path
##
mountPath: /data
## alertmanager data Persistent Volume size
##
size: 10Gi

## alertmanager data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
##   set, choosing the default provisioner.  (gp2 on AWS, standard on
##   GKE, AWS & OpenStack)
##
storageClassName: ""

## alertmanager data Persistent Volume Binding Mode
## If defined, volumeBindingMode: <volumeBindingMode>
## If undefined (the default) or set to null, no volumeBindingMode spec is
##   set, choosing the default mode.
##
volumeBindingMode: ""

## Subdirectory of alertmanager data Persistent Volume to mount
## Useful if the volume's root directory is not empty
##
subPath: ""

but I still get same error.

When I try to use the same PV and PVC for a busybox container, it works.

Do we need specific pluging of Flex to be installed via helm?

from helm-charts.

monotek avatar monotek commented on August 28, 2024

Alermanager Persistence is enabled by default, tested with our CI on every PR and therefore works.

I guess you have some problems with your storage implementation.
We can't support you with that.

from helm-charts.

honhaoyuan0 avatar honhaoyuan0 commented on August 28, 2024

For my case, I used a Storageclass to create the PV PVCs for me but I still get the pvc bound error especially the alertmanager that was having problem binding with the storage class. As I'm using one storage class across my whole cluster, I fixed it by simply setting the storage class as the default storage class in storage class.yaml file. You can do it by adding this line
annotations:
storageclass.kubernetes.io/is-default-class: "true"
under the metadata session.

from helm-charts.

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.