netdata/helmchart

pod has unbound immediate PersistentVolumeClaims.

nnthuanegany opened this issue · 3 comments

Environment

Steps

Step 1: Install the Netdata Helm chart

helm repo add netdata https://netdata.github.io/helmchart/
helm install netdata netdata/netdata

Step 2:

kubectl get services
# OK

Step 3:

kubectl get pods

# output
# netdata-parent-7c7c8ccfd-4x82s            0/1     Pending   0          4m57s
# Get details: pod has unbound immediate PersistentVolumeClaims.

ERROR: pod has unbound immediate PersistentVolumeClaims.

  • netdata-parent-alarms
  • netdata-parent-database

My solutions

Create PersistentVolume for each PersistentVolumeClaims.

==> I hope it installs successfully with the command helm install netdata netdata / netdata

I had the same issue with the netdata-parent-alarms PVC only, chart version 3.6.9

It's because Digital Ocean doesn't allow volumes < 1Gi.
I fixed it with

parent:
  alarms:
    volumesize: 1Gi

in my override.yaml.

Error for reference:

  Warning  ProvisioningFailed    26s (x14 over 28m)     dobs.csi.digitalocean.com_master-xxxxhiddenxxxx  failed to provision volume with StorageClass "do-block-storage": rpc error: code = OutOfRange desc = invalid capacity range: required (100Mi) can not be less than minimum supported volume size (1Gi)

Thanks, @chrisDeFouRire. You are correct! The allowed range is 1 GiB to 16 TiB. We either need to make a note for DO users in the readme or change the alarm volume size to 1Gi.

A note in the readme looks better to me. cc @knatsakis @Ferroin


Edit: We've decided to update our readme.

Ok, I see 1Gi is a minimal storage size for GKE too. But requesting less is not an error.

$ kubectl get pvc alarms-netdata-parent-0 -o json | jq -r '"request=\(.spec.resources.requests), capacity=\(.status.capacity)"'
request={"storage":"100Mi"}, capacity={"storage":"1Gi"}

I guess we will change alarms pvc default then.