I have a created a new k8s cluster with Karpenter and on this cluster I can’t deploy kubecost I have this error : ready.go:284: [debug] PersistentVolumeClaim is not bound: z6138a1e6-tools-development/helm-zeb8ba73f-kubecost-cost-analyzer
I don’t understand why it’s not working because I just clone the Kubecost helm application from my other (production and non karpenter cluster) that works.
Looking deeper into this error, it seems that there is no storage class set for the chart.
Looking at the chart doc, it seems you can set both storage classes:
prometheus.server.persistentVolume.storageClass
persistentVolume.storageClass
Those have to be set on the new version.
Looking at your setup, kubecost on dev cluster is set to version cost-analyzer:2.4.3 whereas the production one (working) is set to cost-analyzer:2.1.0.
Can you try to either deploy the same version as your production cluster cost-analyzer:2.1.0 OR update chart values to set those missing values?
I have the same problem with the version 2.1.0. That’s why it’s strange. Do you have some advices about storageClass to provide ? I never had to do this .
What I can understand it’s there is no default storage class setted on my cluster and can see some of them
Actually, there is no default storage class declared, it used to be GP2, but it’s not anymore.
The issue is on our side and boils down to a regression most likely.
You should be able not to set any storage class and default one will be picked-up.
I am investigating and will work on a fix. I will let you know once fixed.