Aller au contenu

Install Basic Cluster with Scaleway and OpenTofu

  1. Configure your Scaleway credentials in the .env file, for example:
Fenêtre de terminal
SCW_ACCESS_KEY=**
SCW_SECRET_KEY=**
SCW_DEFAULT_PROJECT_ID=**
SCW_DEFAULT_ORGANIZATION_ID=**
  1. Create the cluster :
Fenêtre de terminal
env $(cat .env | sed 's/#.*//g'| xargs) tofu init
env $(cat .env | sed 's/#.*//g'| xargs) tofu apply
  1. Once the cluster is created, you can install the basic cluster with the following command:
Fenêtre de terminal
KUBECONFIG=/home/$USER/.kube/kubeconfig-sandbox-cluster kubectl get po --all-namespaces -o wide