Closed s0komma closed 6 years ago
@s0komma
From the message, looks like kube-controller-manager pod can not open /etc/kubernetes/cloud-config/vsphere.conf
file.
Can you mount /etc/kubernetes/cloud-config
on the controller-manager pod?
Thank you @divyenpatel for pointing in right direction.. its working now.. Thank you ..
Is this a BUG REPORT or FEATURE REQUEST?:
What happened: Trying to use vsphere datastore for k8s persistent storage, i have followed every thing listed in https://vmware.github.io/vsphere-storage-for-kubernetes/documentation/existing.html, steps listed under manual steps. But after doing all the steps, the controller-manager keeps crashing with below error
Apr 26 22:07:09 XXXXX kube-system_kube-controller-manager-XXXXX[14960]: F0426 22:07:09.747554 1 plugins.go:114] Couldn't open cloud provider configuration /etc/kubernetes/cloud-config/vsphere.conf: &os.PathError{Op:"open", Path:"/etc/kubernetes/cloud-config/vsphere.conf", Err:0x2}
we have tried placing the file under/etc/kubernetes/
/etc/kubernetes/pki
&/etc/kubernetes/cloud-config/
and still ends up with same issue. What you expected to happen: controller-manager pod to be up and running How to reproduce it (as minimally and precisely as possible): place the config file under controller-manager manifestAnything else we need to know?:
Environment:
kubectl version
): 1.9.7uname -a
): Linux us06000c3-datanode-001 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux