Infrastructure provisionning
To deploy our Kubernetes cluster, we need to have some VMs available. To do this in this course, we will be using Scaleway.
At the root of this repository, you will find a terraform
folder. It contains the source Terraform files that will provide our infrastructure.
TL;DR
To install the infrastructure you will need to have a scaleway account and the Scaleway CLI installed and setup
With the Scaleway CLI setup, you can then run the following command from the root of the repository:
cd terraform
terraform init
terraform plan
terraform apply -var="project_name=<your project name>" -var="project_id=<your project id>"
You must provide the Scaleway project id and a custom project name.
Terraform will ask you to validate the creation of the infrastructure, press yes
and wait for the infrastructure to be created.
To connect to the instances follow the instructions in the last section of this page
Step by step
// TODO
Connection to the instances
To connect to the instances, we will use the public gateway that is configured with a ssh bastion.
To get the ips of the instances and the public gateway you can run the following command to get outputs from terraform:
terraform output
To connect with ssh to any instance, you can use the following command:
ssh -J bastion@<public gateway_ip>:61000 root@<instance_ip>