refined-analyst-8898
05/06/2023, 7:04 PMharvester-cloud-provider
has two pods. One is Running, the other is Containercreating with events:
Unable to attach or mount volumes: unmounted volumes=[cloud-config], unattached volumes=[cloud-config kube-api-access-7mqbm]: timed out waiting for the condition
MountVolume.SetUp failed for volume "cloud-config" : hostPath type check failed: /etc/kubernetes/cloud-config is not a file
This occurred after modifying the RKE2 guest cluster layout in Rancher. /etc/kubernetes/cloud-config
doesn't exist on any node, so it's not clear why the provider pod is a able to start in some but not all cases./var/lib/rancher/rke2/etc/config-files/cloud-provider-config
worked around this issue, but it's not clear if there will be other problems stemming from the same cause.great-bear-19718
05/08/2023, 12:43 AMsalmon-city-57654
05/08/2023, 12:56 AM/etc/kubernetes/cloud-config
and paste the output here?
IIRC, the /etc/kubernetes/cloud-config
should be generated by cloud-init. Thanks!
BTW, did you try to manually deploy the cloud provider in this case?