Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
kubeadm Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubeadm
> Command-line interface for creating and managing Kubernetes clusters.
> More information: <https://kubernetes.io/docs/reference/setup-tools/kubeadm>.
- Create a Kubernetes master node:
`kubeadm init`
- Bootstrap a Kubernetes worker node and join it to a cluster:
`kubeadm join --token {{token}}`
- Create a new bootstrap token with a TTL of 12 hours:
`kubeadm token create --ttl {{12h0m0s}}`
- Check if the Kubernetes cluster is upgradeable and which versions are available:
`kubeadm upgrade plan`
- Upgrade Kubernetes cluster to a specified version:
`kubeadm upgrade apply {{version}}`
- View the kubeadm ConfigMap containing the cluster's configuration:
`kubeadm config view`
- Revert changes made to the host by 'kubeadm init' or 'kubeadm join':
`kubeadm reset`