Skip to content

Commit

Permalink
Change --no-deploy to --disable in k3d init recipe (#9449)
Browse files Browse the repository at this point in the history
The `--no-deploy` flag seems to have been deprecated and replaced with `--disable`. Newer k3d versions (tested with `v5.4.3` and above) will not work with our current justfile recipe. Our dev container uses `v5.4.4`; this change updates the recipe to be able to create a k3d cluster.

Fixes #9448

---

Tested with `v5.4.3`:

```
:; just k3d-create
k3d cluster create l5d-test --image='+latest' --agents='0' --servers='1' --no-lb --k3s-arg '--disable=local-storage,traefik,servicelb,metrics-server@server:*' --kubeconfig-update-default --kubeconfig-switch-context=false
...
INFO[0008] Cluster 'l5d-test' created successfully!
INFO[0009] You can now use it like this:
kubectl config use-context k3d-l5d-test
kubectl cluster-info
```
Signed-off-by: Matei David <matei@buoyant.io>
  • Loading branch information
mateiidavid authored Sep 23, 2022
1 parent b45c379 commit ecc7fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -188,7 +188,7 @@ k3d-create: && _k3d-ready
--agents='{{ k3d-agents }}' \
--servers='{{ k3d-servers }}' \
--no-lb \
--k3s-arg '--no-deploy=local-storage,traefik,servicelb,metrics-server@server:*' \
--k3s-arg '--disable=local-storage,traefik,servicelb,metrics-server@server:*' \
--kubeconfig-update-default \
--kubeconfig-switch-context=false

0 comments on commit ecc7fbe

Please sign in to comment.