Skip to content

Commit b2770b3

Browse files
committed
ipv6 kind on macos
1 parent 7837522 commit b2770b3

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

content/posts/kind-macos.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ If you look under the hood, Kubernetes is an API server which relies on composab
1313

1414
**To get a functional IPv6 capable kubernetes cluster on a MacOS we need the following**
1515

16-
- [orbstack](https://orbstack.dev)
16+
- [Orbstack](https://orbstack.dev)
1717
- [KIND](https://kind.sigs.k8s.io)
18-
- [Cilium] (https://cilium.io)
18+
- [Cilium](https://cilium.io)
1919

20-
### Orbstack supports IPv6 containers on MacOS
20+
Make sure to have the following installed on your MacOS. If not, you can install them using homebrew.
21+
- `helm`
22+
- `kubectl`
23+
- `cilium-cli`
24+
25+
### Orbstack
2126

2227
After installing [orbstack](https://orbstack.dev) make sure your docker context is pointing to Orbstack. You may have to explicitly switch the docker context to orbstack if you have Docker desktop installed. In my case, I uninstalled Docker desktop.
2328

@@ -39,6 +44,8 @@ Enable IPv6 in Docker daemon with the following config.
3944
}
4045
```
4146

47+
### Create a KIND cluster
48+
4249
Create a file named `kind-config.yaml` to pre-configure KIND with the following config options. Notice that I am disabling the default CNI (flannel) so I can install Cilium 😋
4350

4451
#### kind-config.yaml
@@ -61,12 +68,7 @@ nodes:
6168
- role: worker
6269
```
6370
64-
### Create KIND cluster
65-
66-
The following snippet assumes that you already have the following already installed on your Mac. If not, you can install them using homebrew.
67-
- `helm`
68-
- `kubectl`
69-
- `cilium-cli`
71+
Bootstrap the cluster.
7072
7173
```bash
7274
# Creates a new cluster with our custom config
@@ -87,8 +89,9 @@ Thanks for using kind! 😊
8789
```
8890

8991
Next we install Cilium CNI with IPv6 enabled
90-
```sh
91-
❯ helm install cilium cilium/cilium --namespace=kube-system --set ipv6.enabled=true --set ipam.mode=kubernetes
92+
93+
```bash
94+
❯ helm install cilium cilium/cilium --namespace=kube-system --set ipv6.enabled=true
9295
```
9396

9497
Optionally, we can enable Hubble as well!
@@ -113,7 +116,7 @@ kind-worker2 Ready worker v1.32.2 fc00:f853:ccd:e793::4
113116

114117
Now let's try deploying a simple application and verify connectivity over IPv6.
115118

116-
### Deploy an app and verify connectivity over IPv6
119+
### Deploy and Verify
117120
```bash
118121
❯ kubectl create deployment --image nginx nginx --port 80
119122
deployment.apps/nginx created

0 commit comments

Comments
 (0)