Document how to run openstack-cloud-controller-manager with hack/local-up-cluster.sh
There is support for EXTERNAL_CLOUD_PROVIDER=true when you also add CLOUD_PROVIDER and CLOUD_CONFIG for local-up-cluster.sh, we should document how one can easily build a test/dev environment using local-up-cluster.sh
please see:
- https://github.com/kubernetes/kubernetes/pull/58549
- https://github.com/kubernetes/kubernetes/pull/58543
oh, the local-up-cluster should be running inside a VM started by OpenStack (to be able to pick up the metadata from either the config drive or the metadata service)
see https://github.com/kubernetes/kubernetes/pull/59280
with latest k/k master, set the following env vars and then run sudo -E PATH=$PATH ./hack/local-up-cluster.sh (PATH should have etcd binaries)
export EXTERNAL_CLOUD_PROVIDER_BINARY=/home/dims/go/src/git.openstack.org/openstack/openstack-cloud-controller-manager/openstack-cloud-controller-manager
export EXTERNAL_CLOUD_PROVIDER=true
export CLOUD_PROVIDER=openstack
export CLOUD_CONFIG=/etc/kubernetes/cloud-config
@hogepodge can you please try this out?