https://rancher.com/ logo
Title
r

refined-analyst-8898

05/06/2023, 7:04 PM
Deployment:
harvester-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.
Changing the hostPath to
/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.
g

great-bear-19718

05/08/2023, 12:43 AM
let me check with the wider and team and see if we can get a milestone assigned to this
s

salmon-city-57654

05/08/2023, 12:56 AM
hi @refined-analyst-8898, could you list your
/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?