add helper scripts to upgrade all clusters and renew node certs [ci skip]

This commit is contained in:
Viktor Barzin 2024-01-21 03:36:10 +00:00
parent a411b4f256
commit 0c91cc8333
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 33 additions and 0 deletions

9
renew_worker_certs.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
echo 'KUBELET_KUBEADM_ARGS="--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --pod-infra-container-image=k8s.gcr.io/pause:3.7 --rotate-certificates=true --rotate-server-certificates=true"' | sudo tee /var/lib/kubelet/kubeadm-flags.env
sudo systemctl daemon-reload
sudo systemctl restart kubelet
# Aprprove all csrs:
# for csr in $(kb get csr | grep Pending | awk '{print $1}'); do echo $csr; kb certificate approve $csr; done