mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
600 B
Plaintext
30 lines
600 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# k3d
|
|
|
|
> A wrapper to easily create k3s clusters inside Docker.
|
|
> More information: <https://k3d.io/stable/usage/commands/>.
|
|
|
|
- Create a cluster:
|
|
|
|
`k3d cluster create {{cluster_name}}`
|
|
|
|
- Delete a cluster:
|
|
|
|
`k3d cluster delete {{cluster_name}}`
|
|
|
|
- Create a new containerized k3s node:
|
|
|
|
`k3d node create {{node_name}}`
|
|
|
|
- Import an image from Docker into a k3d cluster:
|
|
|
|
`k3d image import {{image_name}} {{[-c|--cluster]}} {{cluster_name}}`
|
|
|
|
- Create a new registry:
|
|
|
|
`k3d registry create {{registry_name}}`
|