10 lines
346 B
Python
10 lines
346 B
Python
import paramiko
|
|
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect('140.44.4.41', username='root', password='dietpi', timeout=10)
|
|
_, o, e = c.exec_command("kubectl get app aerodrome-prometheus -n infrastructure")
|
|
print("out:", o.read().decode().strip())
|
|
print("err:", e.read().decode().strip())
|
|
c.close()
|