From fcb79da5ed3eb86bfef5c859e8e6d52d9fe98427 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 8 Jan 2025 21:06:07 +0100 Subject: Add cluster configuration for worker nodes --- README.md | 9 ++++++++- yaml/cluster/kind-cluster-config.yaml | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 yaml/cluster/kind-cluster-config.yaml diff --git a/README.md b/README.md index d8b575d..aa91064 100644 --- a/README.md +++ b/README.md @@ -30,10 +30,17 @@ Meanwhile the followings are setted up by default. - `AUDIO_PATH`: "./assets" - `ALLOWED_HOST`: "0.0.0.0:8000" +First of all you must create a new cluster for KinD. We need it for some worker +(let's say 4). + +``` +$ kind create cluster --config yaml/cluster/kind-cluster-config.yaml +``` + After that just run the `run.sh` script. ```sh -./run.sh apply +$ ./run.sh apply ``` After that, you'll be able to see what the external IP for the load balancer is. diff --git a/yaml/cluster/kind-cluster-config.yaml b/yaml/cluster/kind-cluster-config.yaml new file mode 100644 index 0000000..6f0e32d --- /dev/null +++ b/yaml/cluster/kind-cluster-config.yaml @@ -0,0 +1,8 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: +- role: control-plane +- role: worker +- role: worker +- role: worker +- role: worker -- cgit v1.2.3-18-g5258