From a1364660bdde228b1c4f8940a043b6d9a0c646cd Mon Sep 17 00:00:00 2001 From: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:43:40 +0000 Subject: [PATCH 1/3] Update k3d cluster create command to disable servicelb Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com> --- docs/content/guides/operations/kubernetes/overview/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guides/operations/kubernetes/overview/index.md b/docs/content/guides/operations/kubernetes/overview/index.md index d5d67d35e..2d036ed3c 100644 --- a/docs/content/guides/operations/kubernetes/overview/index.md +++ b/docs/content/guides/operations/kubernetes/overview/index.md @@ -86,7 +86,7 @@ softwareupdate --install-rosetta --agree-to-license Next, use the following commands to create a new cluster and install the Radius control plane, along with a new environment: ```bash -k3d cluster create -p "8081:80@loadbalancer" --k3s-arg "--disable=traefik@server:0" +k3d cluster create -p "8081:80@loadbalancer" --k3s-arg "--disable=traefik@server:*" --k3s-arg "--disable=servicelb@server:*" rad install kubernetes --set rp.publicEndpointOverride=localhost:8081 rad init ``` From d4ae9450d7f3e4d273a2fbfe54860619092f4229 Mon Sep 17 00:00:00 2001 From: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com> Date: Tue, 13 Aug 2024 20:09:14 +0000 Subject: [PATCH 2/3] Improve explanation of k3d cluster configuration Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com> --- .../guides/operations/kubernetes/overview/index.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/content/guides/operations/kubernetes/overview/index.md b/docs/content/guides/operations/kubernetes/overview/index.md index 2d036ed3c..a837c9b7b 100644 --- a/docs/content/guides/operations/kubernetes/overview/index.md +++ b/docs/content/guides/operations/kubernetes/overview/index.md @@ -83,10 +83,21 @@ First, ensure that memory resource is 8GB or more in `Resource` setting of `Pref softwareupdate --install-rosetta --agree-to-license ``` -Next, use the following commands to create a new cluster and install the Radius control plane, along with a new environment: +Use the following command to create a new cluster. and install the Radius control plane, along with a new environment: + +- The first parameter adds a port mapping which routes traffic from the local machine into the cluster. +- The second parameter disables [`traefik`](https://k3d.io/v5.1.0/usage/k3s/#traefik) pods because Radius provides an ingress controller. +- The third parameter disables the [k3d internal load balancer](https://k3d.io/v5.1.0/usage/k3s/#servicelb-klipper-lb). + +The `rad install` command is configured to route localhost traffic on port 8081 into the cluster. ```bash k3d cluster create -p "8081:80@loadbalancer" --k3s-arg "--disable=traefik@server:*" --k3s-arg "--disable=servicelb@server:*" +``` + +Next, install the Radius control plane, along with a new environment. The `rad install` command below adds a parameter to override the default public endpoint so that Radius knows that traffic from the local machine will enter the pod on port 8081: + +```bash rad install kubernetes --set rp.publicEndpointOverride=localhost:8081 rad init ``` From 2533a536449f20099edc0bb50064e44d9e378b04 Mon Sep 17 00:00:00 2001 From: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com> Date: Tue, 13 Aug 2024 20:27:04 +0000 Subject: [PATCH 3/3] Add balancer to custom spell list Signed-off-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com> --- .github/config/en-custom.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/config/en-custom.txt b/.github/config/en-custom.txt index 104c612b9..4c40f2d44 100644 --- a/.github/config/en-custom.txt +++ b/.github/config/en-custom.txt @@ -439,6 +439,7 @@ tcp BucketName roadmap Balancer +balancer vHost URI uri