feat: add various infrastructure check and automation scripts
This commit is contained in:
9
scripts/check_spaceport_pods.py
Normal file
9
scripts/check_spaceport_pods.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, _ = c.exec_command("kubectl get pods -A | grep -iE 'metrics|prom'")
|
||||
print(o.read().decode().strip())
|
||||
c.close()
|
||||
|
||||
Reference in New Issue
Block a user