Skip to content

Commit b0babf5

Browse files
committed
Add notes on K3d from Jacob Christen
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent c6cf1e6 commit b0babf5

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

_posts/2021-05-12-kim.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ We'll use [arkade 0.7.14](https://github.com/alexellis/arkade/releases/tag/0.7.1
4242

4343
## Quickstart
4444

45-
You'll need a Virtual Machine (VM) since kim currently does not work with k3d out of the box.
45+
You'll need a Virtual Machine (VM) since kim currently does not work with [K3d](https://github.com/rancher/k3d) out of the box.
4646

4747
All commands need to be run on your client, not on the VM. Do not log into the VM, it's unnecessary.
4848

@@ -258,7 +258,7 @@ The kim project is still nascent, and likely to change and improve over time.
258258

259259
These statements are true at time of writing and may change:
260260

261-
* kim doesn't work "out of the box" with K3d and [requires additional configuration](https://twitter.com/dweomer/status/1392207985380757505?s=20)
261+
* kim doesn't work "out of the box" with [K3d](https://github.com/rancher/k3d) and [requires additional configuration](https://twitter.com/dweomer/status/1392207985380757505?s=20)
262262
* I haven't been able to confirm whether it works with Apple M1 yet. The new [Rancher Desktop tool](https://github.com/rancher-sandbox/rd) that ships with kim built-in does not work with Apple M1
263263
* The `--squash` flag is not yet available in kim
264264
* kim also doesn't work for multi-node setups because it was designed to only accelerate local development
@@ -280,3 +280,27 @@ You can watch [me](https://twitter.com/alexellisuk) and [Matt Farina](https://tw
280280
Join GitHub Sponsors for 25 USD / mo for access to discounts, offers, and updates on OpenFaaS going back to mid-2019. By taking this small step, you are enabling me to continue to work on OpenFaaS and the other tools we have spoken about today.
281281

282282
Join now: [OpenFaaS GitHub Sponsors](https://github.com/sponsors/openfaas/)
283+
284+
### Addendum
285+
286+
[Jacob Christen](https://twitter.com/dweomer) from Rancher sent me these two commands on Twitter. I haven't tested them, so your mileage may vary. They should enable `kim` with k3d / Docker.
287+
288+
For [K3d](https://github.com/rancher/k3d):
289+
290+
```bash
291+
k3d cluster create \
292+
--volume /var/lib/buildkit \
293+
--volume /var/lib/rancher \
294+
--volume /tmp
295+
```
296+
297+
For K3s within Docker:
298+
299+
```bash
300+
docker run -it --name k3s --privileged \
301+
--tmpfs /run \
302+
--tmpfs /tmp \
303+
--volume /var/lib/buildkit \
304+
--volume /var/lib/rancher \
305+
rancher/k3s:v1.20.5-k3s1 server --token=k3s
306+
```

0 commit comments

Comments
 (0)