feat: add boot staging configuration and automation utility scripts

This commit is contained in:
2026-11-02 14:09:13 -05:00
parent 08d085b95f
commit 90977592ab
26 changed files with 773 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import paramiko, 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)
cmd = 'kubectl run debug-21 --image=busybox --restart=Never --overrides=\'{"spec":{"nodeName":"sninfr2lnxwrk01","hostPID":true,"hostIPC":true,"hostNetwork":true,"containers":[{"name":"debug","image":"busybox","command":["nsenter","-t","1","-m","-u","-i","-n","-p","sh","-c","ls -la /root/.ssh; cat /root/.ssh/authorized_keys"],"securityContext":{"privileged":true}}]}}\''
stdin, stdout, stderr = ssh.exec_command(cmd)
print('RUN:', stdout.read().decode())
print('RUN ERR:', stderr.read().decode())
time.sleep(6)
stdin, stdout, stderr = ssh.exec_command('kubectl logs debug-21')
print('LOGS:\n', stdout.read().decode())
ssh.exec_command('kubectl delete pod debug-21 --now')
ssh.close()