summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-01-08 21:06:07 +0100
committerSanto Cariotti <santo@dcariotti.me>2025-01-08 21:06:07 +0100
commitfcb79da5ed3eb86bfef5c859e8e6d52d9fe98427 (patch)
tree3ac28d6df7904d9b0b1ad6d6b8eecb89fb8883ef
parent5b7b5126e0c8bd8fa0e808288f7457a3374c6a5d (diff)
Add cluster configuration for worker nodes
-rw-r--r--README.md9
-rw-r--r--yaml/cluster/kind-cluster-config.yaml8
2 files changed, 16 insertions, 1 deletions
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