Skip to content

Commit 3928506

Browse files
committed
post about kind with ipv6
1 parent 4f49ce2 commit 3928506

File tree

4 files changed

+54
-54
lines changed

4 files changed

+54
-54
lines changed

content/posts/homelab.md

-16
This file was deleted.

content/posts/kind-macos.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Running Kubernetes in Docker (kind) on Macos
2+
3+
I have been using [orbstack](https://orbstack.dev) for over two years now as a drop in replacement for Docker desktop and I have to say it's beyond impressive in terms of performance and feature set. My main motivation to move away from Docker desktop was because it does not support IPv6 on a MacOS. The next thing I tried was Colima but that doesn't support IPv6 either.
4+
5+
### Orbstack supports IPv6 containers on MacOS
6+
```bash
7+
~
8+
❯ docker context ls
9+
NAME DESCRIPTION DOCKER ENDPOINT ERROR
10+
default Current DOCKER_HOST based configuration unix:///var/run/docker.sock
11+
desktop-linux unix:///Users/kagraw/.docker/run/docker.sock
12+
orbstack * OrbStack unix:///Users/kagraw/.orbstack/run/docker.sock
13+
14+
15+
❯ cat .orbstack/config/docker.json
16+
{
17+
"ip6tables" : false,
18+
"ipv6" : true
19+
}
20+
```
21+
22+
#### kind-config.yaml
23+
```YAML
24+
---
25+
kind: Cluster
26+
apiVersion: kind.x-k8s.io/v1alpha4
27+
name: kind
28+
runtimeConfig:
29+
"api/alpha": "false"
30+
networking:
31+
apiServerPort: 6443
32+
ipFamily: dual
33+
disableDefaultCNI: true
34+
# IPv6 prefix must be specified first
35+
serviceSubnet: fd00:10:96::/112,10.96.0.0/12
36+
nodes:
37+
- role: control-plane
38+
- role: worker
39+
- role: worker
40+
```
41+
42+
#### IPv6 enabled #KIND cluster
43+
```
44+
# Creates a new cluster
45+
❯ kind create cluster --config ~/.config/kind/kind-config.yaml
46+
47+
# Install Cilium with IPv6 enabled
48+
❯ helm install cilium cilium/cilium --namespace=kube-system --set ipv6.enabled=true
49+
```
50+
51+
#### Delete a #KIND cluster
52+
```
53+
❯ kind delete cluster --name $(kind get clusters)
54+
```

content/posts/my-cookiecutter.md

-7
This file was deleted.

content/posts/my-dev-env.md

-31
This file was deleted.

0 commit comments

Comments
 (0)