Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/growse/kubeadm-config
Configuration for k8s cluster via kubeadm
https://github.com/growse/kubeadm-config
Last synced: 4 days ago
JSON representation
Configuration for k8s cluster via kubeadm
- Host: GitHub
- URL: https://github.com/growse/kubeadm-config
- Owner: growse
- Created: 2021-04-11T08:11:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T15:07:44.000Z (2 months ago)
- Last Synced: 2024-10-11T14:14:13.187Z (28 days ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Some notes and handy `kubeadm` commands
_Important_: Configuration is mastered in the configmaps on the server. Don't try and mess around with local configs / patches, that's for a per-node config
## Get a node join token
`kubeadm token create --print-join-command --config kubeadm-config.yaml`
## Refresh the API server certs (because you added a new SAN or something)
1. Remove the old cert/key in /etc/kubernetes/pki/
2. `kubeadm init phase certs apiserver --config kubeadm-config.yaml`
3. Kill the API server pod## Check and approve kubelet CSRs
1. `kubectl get csr`
2. `kubectl certificate approvate `