Skip to content

exo CLI

Creating a SKS cluster with the exo CLI

The current folder contains the script sks.sh, it creates the following Exoscale resources:

  • a security group
  • security group rules
  • a SKS cluster
  • a node pool for the SKS cluster

This script also generate a kubeconfig file to access the cluster API Server.

First we need to set env variables to communicate with the Exoscale API

export EXOSCALE_API_KEY=...
export EXOSCALE_API_SECRET=...

Next we run the script providing the name of the cluster:

./sks.sh -n demo

Info

It takes about 2 minutes for the cluster and the associated resources to be created

Once created we can configure our local kubectl

export KUBECONFIG=$PWD/sks-demo.kubeconfig

Then we can access the cluster

$ kubectl get node
NAME               STATUS   ROLES    AGE     VERSION
pool-7303d-qsnyx   Ready    <none>   2m28s   v1.31.0
pool-7303d-vquvu   Ready    <none>   2m25s   v1.31.0
pool-7303d-wdexn   Ready    <none>   2m19s   v1.31.0

Cleanup

Once we are done we can delete the cluster and its associated resources

sks.sh -d demo