feat: add infrastructure audit and diagnostic helper scripts

This commit is contained in:
2026-11-06 12:37:49 -05:00
parent 06c203485f
commit aea8608f3d
44 changed files with 1141 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
import paramiko
key_path = r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet'
def check_issue1_and_2():
print("=== Checking Ingress on Aerodrome (Issue 1) ===")
ssh_aero = paramiko.SSHClient()
ssh_aero.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_aero.connect('140.44.4.11', username='root', key_filename=key_path, timeout=10)
stdin, stdout, stderr = ssh_aero.exec_command("k3s kubectl get ingress -A -o wide")
print(stdout.read().decode())
stdin, stdout, stderr = ssh_aero.exec_command("k3s kubectl get ingress -n longhorn-system -o yaml 2>/dev/null || true")
print("Longhorn Ingress YAML on Aerodrome:")
print(stdout.read().decode())
ssh_aero.close()
print("\n=== Checking Semaphore on Spaceport (Issue 2) ===")
ssh_space = paramiko.SSHClient()
ssh_space.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_space.connect('140.44.4.41', username='root', key_filename=key_path, timeout=10)
stdin, stdout, stderr = ssh_space.exec_command("k3s kubectl get ingress -A -o wide")
print(stdout.read().decode())
ssh_space.close()
check_issue1_and_2()