- Run the bootstrap script to download dependencies.
- Activate the openstrack openrc.sh enviroment.
- Build the base cpu image:
./packer build image/cpu/build.json
- Build the base gpu image:
./packer build image/gpu/build.json
- Init terraform in this folder:
./terraform init
- Generate public and private keypair for the vms:
ssh-keygen -f k8
- Config terraform variables:
export TF_VAR_password=$OS_PASSWORD
export TF_VAR_hostname=$(echo $OS_AUTH_URL | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+')
- Create cluster
./terraform apply
- Copy kubernetes credentials from master node to your machine:
scp -i k8 ubuntu@<MASTER_IP>:.kube/config $HOME/.kube/config