Skip to content

K3D Commands

Lightweight Kubernetes clusters

Command Count

This service has 12 command demonstrations.

Show Kubeconfig

ujust k3d kubeconfig --instance=10000

Create Cluster

ujust k3d config --instance=10000 --port=16443 --http-port=18080 --https-port=18443 --bind=127.0.0.1

Restart Cluster

ujust k3d restart --instance=10000

Start Cluster

ujust k3d start --instance=10000

Check Status

ujust k3d status --instance=10000

View Logs

ujust k3d logs --instance=10000 --lines=30

List Clusters

ujust k3d list

Kubectl Get Nodes

ujust k3d shell --instance=10000 -- kubectl get nodes -o wide

Kubectl Get Pods All

ujust k3d shell --instance=10000 -- kubectl get pods --all-namespaces

Setup Gpu

ujust k3d gpu --instance=10000

Stop Cluster

ujust k3d stop --instance=10000

Delete Cluster

ujust k3d delete --instance=10000