feat: add various infrastructure check and automation scripts
This commit is contained in:
10
scripts/sync_argocd.py
Normal file
10
scripts/sync_argocd.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
# Annotate aerodrome-prometheus with refresh=hard
|
||||
_, o, _ = c.exec_command("kubectl annotate app aerodrome-prometheus -n infrastructure argocd.argoproj.io/refresh=hard --overwrite")
|
||||
print("Refresh annotated:", o.read().decode().strip())
|
||||
c.close()
|
||||
|
||||
Reference in New Issue
Block a user