vmware-archive / kubernetes-archived

This repository is archived. Please file in-tree vSphere Cloud Provider issues at https://github.com/kubernetes/kubernetes/issues . CSI Driver for vSphere is available at https://github.com/kubernetes/cloud-provider-vsphere
Apache License 2.0
46 stars 31 forks source link

setup of vsphere-storage-for-kubernetes fails with controller-manager crashing #480

Closed s0komma closed 6 years ago

s0komma commented 6 years ago

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug /kind feature

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 manifest

Anything else we need to know?:

Environment:

divyenpatel commented 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?

s0komma commented 6 years ago

Thank you @divyenpatel for pointing in right direction.. its working now.. Thank you ..