Forum archive › Kubernetes & Helm Charts
ArchiveCannot bind to requested volume \"\": storageClassName does not match
Read-only archive. These discussions are from Tracston's earlier
technical forum and are kept online because the answers are still useful.
New replies are closed. Need help with something like this?
Talk to us.
Question
18 Apr 2023
Problem
User tries to deploy an helm chart and gets the following error:
Cannot bind to requested volume "core-services-kafka-moshe-sharon": storageClassName does not match
Solution
Add Storage classname name to your pvc
apiVersion: v1kind: PersistentVolumeClaimmetadata:annotations:pv.kubernetes.io/bind-completed: "yes"pv.kubernetes.io/bound-by-controller: "yes"volume.beta.kubernetes.io/storage-provisioner: openebs.io/localvolume.kubernetes.io/storage-provisioner: openebs.io/localname: {{ .Release.Name }}-kafka-{{ .Release.Namespace }}namespace: {{ .Release.Namespace}}spec:accessModes:- ReadWriteOnceresources:requests:storage: {{ .Values.kafka.storage.size }}volumeMode: FilesystemvolumeName: {{ .Release.Name }}-kafka-{{ .Release.Namespace }}storageClassName: standard
Attachment: commands.txt
Need this fixed properly?
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →