openstack-cloud-controller-manager icon indicating copy to clipboard operation
openstack-cloud-controller-manager copied to clipboard

Document how to run openstack-cloud-controller-manager with hack/local-up-cluster.sh

Open dims opened this issue 7 years ago • 5 comments

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

dims avatar Jan 19 '18 02:01 dims

please see:

  • https://github.com/kubernetes/kubernetes/pull/58549
  • https://github.com/kubernetes/kubernetes/pull/58543

dims avatar Jan 19 '18 22:01 dims

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)

dims avatar Jan 19 '18 22:01 dims

see https://github.com/kubernetes/kubernetes/pull/59280

dims avatar Feb 02 '18 19:02 dims

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

dims avatar Feb 07 '18 20:02 dims

@hogepodge can you please try this out?

dims avatar Feb 07 '18 20:02 dims