Skip to content

Kubernetes Deployment

Deploy applications to local k3d clusters or production Kubernetes using ujust commands.

Local k3d Cluster

Quick Start

Step Command Description Recording
1 ujust k3d config Configure cluster
2 ujust k3d create Create cluster
3 ujust k3d status Check status

k3d Commands

Command Description Recording
ujust k3d config Configure cluster
ujust k3d create Create cluster
ujust k3d start Start cluster
ujust k3d stop Stop cluster
ujust k3d status Check status
ujust k3d delete Delete cluster
ujust k3d gpu GPU support
ujust k3d kubectl Run kubectl

GPU Support

Enable GPU passthrough to k3d:

Step Command Description Recording
1 ujust k3d gpu Install NVIDIA plugin
2 ujust k3d kubectl -- get nodes Verify GPU nodes

Deploy Applications

JupyterHub

Step Command Description Recording
1 ujust deploy jupyterhub config Configure
2 ujust deploy jupyterhub install Deploy
3 ujust deploy jupyterhub status Check status
4 ujust deploy jupyterhub url Get URL

KubeAI

Step Command Description Recording
1 ujust deploy kubeai config Configure
2 ujust deploy kubeai install Deploy
3 ujust deploy kubeai status Check status

Multiple Clusters

Run multiple k3d clusters:

# First cluster (default)
ujust k3d config
ujust k3d create

# Second cluster
ujust k3d config -n 2
ujust k3d create -n 2

# Manage specific cluster
ujust k3d status -n 2
ujust k3d kubectl -n 2 -- get pods -A
ujust k3d stop -n 2

Cleanup

Command Description Recording
ujust deploy jupyterhub uninstall Remove JupyterHub
ujust deploy kubeai uninstall Remove KubeAI
ujust k3d delete Delete cluster

See Also