Skip to content

Instantly share code, notes, and snippets.

@mtintes
Created February 25, 2025 17:37
Show Gist options
  • Save mtintes/18f4ef04edd52c7057e3dbc4ffb4e0ab to your computer and use it in GitHub Desktop.
Save mtintes/18f4ef04edd52c7057e3dbc4ffb4e0ab to your computer and use it in GitHub Desktop.
1. ```kwokctl create cluster --name=kwok```
2. ```kwokctl config view > ~/kwok-config.yaml```
3. edit ```~/kwok-config.yaml```
4. Add ```kubeApiserverCertSANs: ["host.docker.internal"]``` under options
5. ```kwokctl delete cluster --name=kwok```
6. ```kwokctl create cluster --name=kwok --config ~/kwok-config.yaml```
7. edit ```/etc/hosts```
8. Add ```127.0.0.1 host.docker.internal``` at the bottom
9. Start ArgoCD in k8s and port forward argocd-server
10. ```argocd login localhost:<your argocd-port>```
11. ```argocd context localhost:<your argocd-port>```
12. ```cp ~/.kube/config ~/kwok-kube-config```
13. edit ```~/kwok-kube-config```
Change
```- cluster:
certificate-authority: ~/.kwok/clusters/kwok/pki/ca.crt
server: https://127.0.0.1:32766
name: kwok-kwok```
to
```- cluster:
certificate-authority: ~/.kwok/clusters/kwok/pki/ca.crt
server: https://host.docker.internal:32766
name: kwok-kwok```
14. ```argocd cluster add kwok-kwok --insecure --kubeconfig ~/kwok-kube-config```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment