フラミナル

考え方や調べたことを書き殴ります。IT技術系記事多め

備忘:GKE CSIでPVCを作成するときに発生したエラー

  Warning  ProvisioningFailed    1s (x2 over 3s)  pd.csi.storage.gke.io_gke-5e27e4c13f914c63a047-5131-44b0-vm_d6569e4a-5b72-46f5-9b98-2b1a87a061a3  failed to provision volume with StorageClass "regionalpd-storageclass": rpc error: code = Internal desc = CreateVolume failed to create regional disk "pvc-feb00985-b20e-4b77-984e-44195ca75f47": failed to insert regional disk: rpc error: code = Internal desc = unknown Insert disk error: googleapi: Error 400: Invalid value for field 'resource.sizeGb': '3'. Disk size cannot be smaller than 200 GB., invalid

-> ディスクサイズが小さいので200GB以上にする(pd-ssdなら制限なくなる)


  Warning  ProvisioningFailed    2s (x4 over 9s)  pd.csi.storage.gke.io_gke-5e27e4c13f914c63a047-5131-44b0-vm_d6569e4a-5b72-46f5-9b98-2b1a87a061a3  failed to provision volume with StorageClass "regionalpd-storageclass": rpc error: code = InvalidArgument desc = CreateVolume failed to get region from zones: multiple or no regions gotten from zones, got: map[asia-northeast1:{} asis-northeast1:{}]

-> Zone名が間違っている


  Warning  ProvisioningFailed    4s (x5 over 19s)   pd.csi.storage.gke.io_gke-5e27e4c13f914c63a047-5131-44b0-vm_d6569e4a-5b72-46f5-9b98-2b1a87a061a3  failed to provision volume with StorageClass "regionalpd-storageclass": rpc error: code = InvalidArgument desc = CreateVolume failed to pick zones for disk: failed to pick zones from topology: need 2 zones from topology, only got 1 unique zones

-> allowedTopologiesで指定しているZoneは2つ以上必要