Totally revamp cluster chart configs

This commit is contained in:
Jonas Juselius
2020-11-05 21:05:34 +01:00
parent 6fea8b3bc8
commit 3a69e7f1f1
55 changed files with 3921 additions and 531 deletions

18
scripts/restart-flannel.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
master="etcd.service"
node="flannel.service"
nodes=$(kubectl get nodes --no-headers | cut -d' ' -f1)
master_node=$(echo $nodes | cut -d' ' -f1)
echo "$master_node: systemctl restart $master"
sudo systemctl restart $master
for n in $nodes; do
echo "$n: systemctl restart $node"
ssh root@$n systemctl restart $node &
done
echo "Waiting..."
wait