In our GKE 1.27.12 cluster, we run a couple of stateful workloads using GCP Volumes, e.g. using this storage class:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: pd-ssd
provisioner: pd.csi.storage.gke.io
parameters:
type: pd-ssd
reclaimPolicy: Delete
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
However, the embedded Kubelet doesn't show any container_fs_* metrics (e.g. container_fs_writes_total) for pod mounting a volume. It only includes container_fs_* metrics for the root volume (aka. the container filesystem).
I compared with a 1.28.10 k3s cluster (kube-hetzner, using the hcloud-volumes storgage class), where the kubelet/cadvisor happily exports container_fs_* metrics for all mounted volumes.
Any idea how to make this work on GKE?
I tried running my own cadvisor without any luck, so I somehow suspect GCP to be the issue here...
Any help is much appreciated. :)