3 ms·
I run a single node cluster at home. In order to handle updates. I just wipe the cluster with kubeadm reset. Then kubeadm init; followed by running a simple bas
by dcomp 8y ago
I run a single node cluster at home. In order to handle updates. I just wipe the cluster with kubeadm reset. Then kubeadm init; followed by running a simple bash script. which loops of files in nested subdirectories applying yaml configs. Only have to make sure I only ever edit the yaml files and not mess with kubectl edit etc.
for f in /.yaml ...
with a directory structure of:
drwxrwsrwx+ 1 root 1002 176 Jan 20 21:15 .
drwxrwsrwx+ 1 root 1002 194 Nov 17 20:06 ..
drwxrwsrwx+ 1 root 1002 68 Jan 20 20:50 0-pod-network
drwxrwsrwx+ 1 root 1002 104 Nov 1 11:18 1-cert-manager
drwxrwsrwx+ 1 root 1002 34 Jul 11 2018 2-ingress
-rwxrwxrwx+ 1 root 1002 93 Jan 20 21:15 apply-config.sh
drwxrwsrwx+ 1 root 1002 22 Jul 14 2018 cockpit
drwxrwsrwx+ 1 root 1002 36 Jul 3 2018 samba
drwxrwsrwx+ 1 root 1002 76 Jul 6 2018 staticfiles