32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
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()
|
|
|