feat: add various infrastructure check and automation scripts
This commit is contained in:
9
scripts/check_argo_rev.py
Normal file
9
scripts/check_argo_rev.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
_, o, e = c.exec_command("kubectl get app aerodrome-prometheus -n infrastructure")
|
||||
print("out:", o.read().decode().strip())
|
||||
print("err:", e.read().decode().strip())
|
||||
c.close()
|
||||
Reference in New Issue
Block a user