import paramiko import time ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect('140.44.4.11', username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10) # Delete the pod so deployment restarts it stdin, stdout, stderr = ssh.exec_command('k3s kubectl rollout restart deployment/technitium-dns -n dns') print("Restart technitium:", stdout.read().decode()) time.sleep(10) # Check pods stdin, stdout, stderr = ssh.exec_command('k3s kubectl get pods -n dns -l app=technitium-dns') print("Pods:", stdout.read().decode()) # Test GET /sso/login stdin, stdout, stderr = ssh.exec_command('k3s kubectl exec -n dns deployment/technitium-dns -- curl -s -v -I "http://localhost:5380/sso/login"') print("GET /sso/login response:") print(stderr.read().decode('utf-8', errors='ignore')) print(stdout.read().decode('utf-8', errors='ignore')) # Check logs for startup stdin, stdout, stderr = ssh.exec_command('k3s kubectl exec -n dns deployment/technitium-dns -- tail -n 30 /var/log/technitium/dns/2026-11-06.log 2>/dev/null || true') print("Recent logs:") print(stdout.read().decode('utf-8', errors='ignore')) ssh.close()