johnandersen777.bsky.social/socialweb-computer-console
console.socialweb.computer: kcp, kubectl and ssh compiled to wasm in a browser tab with a terminal; a kcp fork
Kind Example
This serves as an example for the appropriate values which should be used for node labels. You can replace the 'role' key, with a value your infra providers uses for grouping nodes. Outside of infrastructure development, the full-scale loadtests are not intended to be run on a kind cluster.
How To
-
Create kind cluster
kind create cluster --config manifests/kind/cluster.yaml -
Create service aliases
kubectl apply -f manifests/kind/service-aliases.yaml -
Source env values
export NODEPOOL_SELECTOR="role" export GATEWAY_BASE_URL="kcp.svc.cluster.local" export GATEWAY_ANNOTATIONS="{'hello':'world'}" -
Run setup.sh
./setup.sh -
Now open a shell on the target cluster (note this is only necessary on the kind setup, for any other you can directly access kcp)
kubectl run kubectl-shell -n kcp --rm -it \ --image=bitnami/kubectl \ --overrides=' { "spec": { "containers": [ { "name": "kubectl-shell", "image": "bitnami/kubectl", "command": ["bash"], "stdin": true, "tty": true, "env": [ { "name": "KUBECONFIG", "value": "/root/.kube/kubeconfig" } ], "volumeMounts": [ { "name": "kubeconfig-vol", "mountPath": "/root/.kube", "readOnly": true } ] } ], "volumes": [ { "name": "kubeconfig-vol", "secret": { "secretName": "kubeconfig-kcp-admin" } } ] } }' -
Inside you can talk with the frontproxy
kubectl get shards --server https://frontproxy-front-proxy.kcp.svc.cluster.local:6443/clusters/root
If you want to talk to other components, you will need to generate a kubeconfig using the operator. Refer to kcp-admin-kubeconfig-req.yaml for an example.