feat: add homelab deployment configs, documentation, and automation scripts
This commit is contained in:
14
scripts/check_prom_elsewhere.py
Normal file
14
scripts/check_prom_elsewhere.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import paramiko
|
||||
|
||||
def check_host(ip, name, cmd):
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect(ip, username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
|
||||
print(f"=== {name} ({ip}) ===")
|
||||
_, o, _ = c.exec_command(cmd)
|
||||
print(o.read().decode())
|
||||
c.close()
|
||||
|
||||
check_host('140.44.4.71', 'Swarm', 'docker service ls; docker ps | grep -i prom')
|
||||
check_host('140.44.44.121', 'Spacedock', 'kubectl get pods,svc -A | grep -i prom')
|
||||
|
||||
Reference in New Issue
Block a user