mirror of
https://github.com/denisidoro/navi
synced 2024-11-25 04:50:21 +00:00
Add k3d cheat
This commit is contained in:
parent
28597037c6
commit
b8bf507d72
1 changed files with 34 additions and 0 deletions
34
cheats/k3d.cheat
Normal file
34
cheats/k3d.cheat
Normal file
|
@ -0,0 +1,34 @@
|
|||
% k3d
|
||||
|
||||
# Check if docker is running
|
||||
k3d check-tools
|
||||
|
||||
# Start a subshell for a cluster
|
||||
k3d shell
|
||||
|
||||
# Create a single k3s cluster in docker containers
|
||||
k3d create --name <name>
|
||||
|
||||
# Create a multi-node k3s cluster in docker containers
|
||||
k3d create --name <name> --workers <count>
|
||||
|
||||
# Delete cluster
|
||||
k3d delete --name <name>
|
||||
|
||||
# Stop cluster
|
||||
k3d stop --name <name>
|
||||
|
||||
# Start a stopped cluster
|
||||
k3d start --name <name>
|
||||
|
||||
# List all clusters
|
||||
k3d list
|
||||
|
||||
# Get kubeconfig location for cluster
|
||||
k3d get-kubeconfig --name <name>
|
||||
|
||||
# Import a comma- or space-separated list of container images from your local docker daemon into the cluster
|
||||
k3d import-images
|
||||
|
||||
# Show a list of commands or help for one command
|
||||
k3d help
|
Loading…
Reference in a new issue