Access
The kubeconfig from the site holds no secret: kubectl signs you in through your browser with GitHub, using kubelogin. Install it once:
brew install int128/kubelogin/kubelogin # or: kubectl krew install oidc-loginYou appear as github:<login> (kubectl auth whoami). Sessions last a day. To start over,
delete ~/.kube/cache/oidc-login/. The CLI doesn’t need kubelogin.
No browser on the machine? Forward kubelogin’s port and open the URL it prints locally:
ssh -L 8000:localhost:8000 remote-host.
What you may do
Section titled “What you may do”- Anything in your control plane’s namespace (named after it).
- CRDs, and your custom resources in any namespace.
- Read events in
default.
You can’t create namespaces, touch kube-system, or change the RBAC ctrlplane manages.
Tokens for CI
Section titled “Tokens for CI”Use a service account. It starts with read access to metrics and logs only; bind what it needs:
kubectl create serviceaccount cikubectl create rolebinding ci-edit --clusterrole=edit --serviceaccount=<you>-dev:cikubectl create role vms --verb='*' --resource=virtualmachines.example.comkubectl create rolebinding ci-vms --role=vms --serviceaccount=<you>-dev:cikubectl create token ci --duration=720h