diff kube.py @ 123:33bb66488545

stop ending the run with an error just because the taint is already there
author drewp@bigasterisk.com
date Wed, 07 Dec 2022 23:14:57 -0800
parents 8012f6095220
children 61f49b60a882
line wrap: on
line diff
--- a/kube.py	Wed Dec 07 23:14:13 2022 -0800
+++ b/kube.py	Wed Dec 07 23:14:57 2022 -0800
@@ -106,7 +106,7 @@
     config_and_run_service()
 
 if host.name == 'dash':
-    server.shell("kubectl taint nodes dash hardware=dash_zigbee:NoSchedule")
+    server.shell("kubectl taint nodes --overwrite dash hardware=dash_zigbee:NoSchedule")
 
 if host.name in admin_from:
     files.directory(path='/etc/rancher/k3s')