Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.55 KB

File metadata and controls

32 lines (25 loc) · 1.55 KB

Running the Cloud Controller on a Cluster

Intro

As well as directly in the master node, the cloud controller can be run as a Daemonset within the kube-system namespace.

The YAML file within this directory is the latest recommended configuration to use on Kubernetes.

By far the easiest way to get the Brightbox cloud controller running on a k8s cluster is to create a new one.

Create Secrets

To use the configuration, first create a secret config map containing the Brightbox credentials. You can get a suitable api client from the Brightbox Manager

$ kubectl -n kube-system create secret generic brightbox-credentials \
    '--from-literal=controller-client=cli-xxxxx' \
    '--from-literal=controller-client-secret=my_secret' \
    '--from-literal=apiurl=https://api.gb1.brightbox.com'

Running the config

  • Ensure your cluster is running with the cloud provider switches set to external
  • Put the YAML file somewhere where kubectl can see it.
  • Edit the file and make sure that the server path in cloud-controller.conf points to your k8s apiserver, and the version number of the cloud-controller docker image is what you want to run
  • Run kubectl apply -f <your_file_path>.yml

This will run the cloud-controller on all your master nodes, with one of them electing itself as the leader.