• Davanum Srinivas's avatar
    Use backup location to load cloud config for OpenStack · 205b2eb3
    Davanum Srinivas authored
    Since we are transitioning to external cloud provider, we need a way
    to use the existing cinder volume plugin (from kubelet). With external
    cloud manager kubelet will be run with --cloud=provider=external and
    no --cloud-config file will be in the command line. So we need a way
    to load the openstack config file from somewhere.
    
    Taking a cue from kubeadm, which currently is picking up "/etc/kubernetes/cloud-config"
    https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/phases/controlplane/manifests.go#L44
    
    let's support the scenario where we fall back to this static location if
    there is no cloud provider specified in the command line.
    
    This has been tested with local-up-cluster using the following params:
    EXTERNAL_CLOUD_PROVIDER=true
    CLOUD_PROVIDER=openstack
    CLOUD_CONFIG=/etc/kubernetes/cloud-config
    205b2eb3
Name
Last commit
Last update
..
api Loading commit data...
apis Loading commit data...
auth Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
credentialprovider Loading commit data...
features Loading commit data...
fieldpath Loading commit data...
generated Loading commit data...
kubeapiserver Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
master Loading commit data...
printers Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
routes Loading commit data...
scheduler Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...