This guide provides a step by step instruction of how to deploy k8s cluster on bare metal or a virtual machine.
The recommended deployment target requirements:
This is a node where to run the installer. Admin node should be Debian/Ubuntu based with the following packages installed:
Note
You could use one of the k8s node as an admin node. In this case this node should meet both k8s and admin node requirements.
Clone fuel-ccp-installer repository:
git clone https://review.openstack.org/openstack/fuel-ccp-installer
Create deployment script:
cat > ./deploy-k8s.sh << EOF
#!/bin/bash
set -ex
# CHANGE ADMIN_IP AND SLAVE_IPS TO MATCH YOUR ENVIRONMENT
export ADMIN_IP="10.90.0.2"
export SLAVE_IPS="10.90.0.2 10.90.0.3 10.90.0.4"
export DEPLOY_METHOD="kargo"
export WORKSPACE="${HOME}/workspace"
mkdir -p $WORKSPACE
cd ./fuel-ccp-installer
bash -x "./utils/jenkins/run_k8s_deploy_test.sh"
EOF
Run script:
bash ~/deploy-k8s.sh
Note
See Deploy a specific hyperkube image if you want to specify the location and version of the hyperkube image to use.