k8s-naas Production

Cluster login

The platform runs several clusters. Your app repo has one folder per environment (test/, prod/, …), and each folder is synced to its own cluster - so "which cluster do I log in to?" is really "which folder am I working on?" For tenant apps:

Cluster Environment Start page ArgoCD Grafana
k8s-naas-test test/ https://home.k8s-naas-test.inf.ethz.ch https://argocd.k8s-naas-test.inf.ethz.ch https://grafana.k8s-naas-test.inf.ethz.ch
k8s-naas (this one) prod/ https://home.k8s-naas.inf.ethz.ch https://argocd.k8s-naas.inf.ethz.ch https://grafana.k8s-naas.inf.ethz.ch

Every cluster has its own start page with these docs, its login command and its kubeconfig - this page is served by k8s-naas.

How login works

The login script authenticates you via OIDC (your ETH account), installs anything it's missing (kubectl and the kubelogin plugin), and updates your kubeconfig (~/.kube/config) with the context oidc@k8s-naas. The script, the kubeconfig and the cluster's CA certificate are served by the cluster itself and built from its live CA, so they stay valid when the CA is rotated.

If you'd rather not pipe a script, download the cluster's kubeconfig ("context") below - make sure kubelogin is installed and point kubectl at it:

export KUBECONFIG=~/Downloads/k8s-naas.oidc.kubeconfig
kubectl get pods -n <your-namespace>

The ArgoCD UIs use the same ETH login and show you every resource the cluster synced from your repo - your first stop when watching a deployment.

k8s-naas

The Namespace-as-a-Service production cluster - this is where the app runs that your users see. Only promote changes here after they work on k8s-naas-test; never debug in prod. It syncs the prod/ folder of your repo.