feat: add cluster auditing, management, and upgrade scripts
This commit is contained in:
14
scripts/check_helm_releases.py
Normal file
14
scripts/check_helm_releases.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import paramiko
|
||||
|
||||
def check_helm(ip, name):
|
||||
print(f"\n=== {name} HELM RELEASES ({ip}) ===")
|
||||
ssh = paramiko.SSHClient()
|
||||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
ssh.connect(ip, username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
|
||||
_, out, _ = ssh.exec_command("helm list -A")
|
||||
print(out.read().decode())
|
||||
ssh.close()
|
||||
|
||||
check_helm('140.44.4.11', 'AERODROME')
|
||||
check_helm('140.44.4.41', 'SPACEPORT')
|
||||
|
||||
Reference in New Issue
Block a user