Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 `