Cluster Portal

Command line
Set up kubectl
1

Install kubectl and kubelogin

The kubelogin plugin handles browser-based sign-in.

brew install kubectl int128/kubelogin/kubelogin
2

Download the cluster config

mkdir -p ~/.kube
curl -fsSL https://kube.casualpug.com/internal_cluster_dev.yaml -o ~/.kube/internal_cluster_dev.yaml
export KUBECONFIG=~/.kube/internal_cluster_dev.yaml

Optional — make it permanent for new shells:

echo 'export KUBECONFIG=~/.kube/internal_cluster_dev.yaml' >> ~/.zshrc
3

Run a command

The first command opens your browser to sign in with Google.

kubectl get nodes
4

Open a Slurm login shell

Jobs are submitted from the Slurm login pod (srun, sbatch, sinfo).

kubectl -n slurm exec -it "$(kubectl -n slurm get pods -o name | grep login | head -1)" -- bash