Mercurial > code > home > repos > infra
view multikube_wipe.py @ 113:c520672d0930
closer to multi-node k3s working, but still doesn't quite network right
author | drewp@bigasterisk.com |
---|---|
date | Sat, 20 Aug 2022 22:35:31 -0700 |
parents | 340d778a1682 |
children | 375515ab60ba |
line wrap: on
line source
from pyinfra import host from pyinfra.operations import server, files from multikube_config import nodes, server_node if host.name in nodes + [server_node]: files.put(dest='/usr/local/bin/k3s-killall.sh', src='files/kube/k3s-killall.sh', mode='a+rx') files.put(dest='/usr/local/bin/k3s-uninstall.sh', src='files/kube/k3s-uninstall.sh', mode='a+rx') server.shell(['k3s-uninstall.sh'])