feat: add cluster auditing, management, and upgrade scripts
This commit is contained in:
18
scripts/check_spaceport_lb.py
Normal file
18
scripts/check_spaceport_lb.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import paramiko
|
||||
|
||||
ssh = paramiko.SSHClient()
|
||||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
ssh.connect('140.44.4.41', username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
|
||||
|
||||
def run(cmd):
|
||||
print(f"=== {cmd} ===")
|
||||
stdin, stdout, stderr = ssh.exec_command(cmd)
|
||||
print(stdout.read().decode())
|
||||
err = stderr.read().decode()
|
||||
if err:
|
||||
print("ERR:", err)
|
||||
|
||||
run("kubectl get ds -A")
|
||||
run("kubectl get svc traefik -n kube-system -o yaml")
|
||||
ssh.close()
|
||||
|
||||
Reference in New Issue
Block a user