feat: add cluster auditing, management, and upgrade scripts
This commit is contained in:
18
scripts/inspect_authentik.py
Normal file
18
scripts/inspect_authentik.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.11', username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
|
||||
|
||||
def run(cmd):
|
||||
print(f"=== {cmd} ===")
|
||||
_, out, err = ssh.exec_command(cmd)
|
||||
res = out.read().decode().strip()
|
||||
if res:
|
||||
print(res)
|
||||
|
||||
run("kubectl get deploy,sts,pod -n infra -o wide")
|
||||
run("kubectl get deploy authentik-server -n infra -o yaml | grep -E 'image:|strategy:' -A 5")
|
||||
|
||||
ssh.close()
|
||||
|
||||
Reference in New Issue
Block a user