Skip to content

Retrieving the Kube Config

Once the environment is online, proceed to login to the environment and begin the deployment normally. You'll find the launch node has everything needed, in the places they belong, to get the environment online.

Install kubectl

Install the kubectl tool.

curl -LO "$(curl -L -s"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

Install the convert plugin

The convert plugin can be used to assist with upgrades.

curl -LO "$(curl -L -s"
sudo install -o root -g root -m 0755 kubectl-convert /usr/local/bin/kubectl-convert

Retrieve the kube config

Retrieve the kube config from our first controller.


In the following example, X.X.X.X is expected to be the first controller.


In the following example, ubuntu is the assumed user.

mkdir -p ~/.kube
rsync -e "ssh -F ${HOME}/.ssh/openstack-flex-keypair.config" \
      --rsync-path="sudo rsync" \
      -avz ubuntu@X.X.X.X:/root/.kube/config "${HOME}/.kube/config"

Edit the kube config to point at the first controller.

sed -i 's@server.*@server: https://X.X.X.X:6443@g' "${HOME}/.kube/config"