Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update k3d cluster create example #1187

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just so I know what's going on ... does this command actually disable the built-in ingress + load balancer?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rynowak K3d has an external load balancer that can be disabled, but the configuration in this PR does not do that. The external LB is an nginx instance that runs as a container and routes traffic from the host machine into the k3d cluster container. We could disable it by passing --no-lb to the k3d cluster create command, i.e. k3d cluster create --no-lib, however, we need the routing from the host machine into the cluster that is provided by the nginx container.

Inside the k3d cluster there is an internal load balancer called servicelb that distributes traffic. That is the one we are disabling with this configuration.

rad install kubernetes --set rp.publicEndpointOverride=localhost:8081
rad init
```
Expand Down
Loading