feat: add various infrastructure check and automation scripts
This commit is contained in:
12
scripts/sync_argo_grafana.py
Normal file
12
scripts/sync_argo_grafana.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import paramiko
|
||||
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect('140.44.4.41', username='root', password='dietpi', timeout=10)
|
||||
|
||||
# Trigger sync for aerodrome-grafana
|
||||
_, o, _ = c.exec_command("kubectl patch applications.argoproj.io aerodrome-grafana -n infrastructure --type merge -p '{\"operation\":{\"sync\":{\"prune\":true}}}'")
|
||||
print("Trigger sync aerodrome-grafana:", o.read().decode().strip())
|
||||
|
||||
c.close()
|
||||
|
||||
Reference in New Issue
Block a user