mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
501 B
Plaintext
30 lines
501 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# k3s
|
|
|
|
> Install and manage lightweight Kubernetes clusters.
|
|
> More information: <https://docs.k3s.io/cli>.
|
|
|
|
- Run the embedded `kubectl` command:
|
|
|
|
`k3s kubectl get nodes`
|
|
|
|
- Take an etcd snapshot of the cluster:
|
|
|
|
`k3s etcd-snapshot save`
|
|
|
|
- Rotate the CA certificate:
|
|
|
|
`k3s certificate rotate-ca`
|
|
|
|
- Manage bootstrap tokens:
|
|
|
|
`k3s token list`
|
|
|
|
- Uninstall K3s and remove all components:
|
|
|
|
`k3s-uninstall.sh`
|