Created
February 25, 2025 17:37
-
-
Save mtintes/18f4ef04edd52c7057e3dbc4ffb4e0ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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