comparison tasks.py @ 136:375515ab60ba

multikube experiment junk. do not run
author drewp@bigasterisk.com
date Wed, 21 Dec 2022 17:44:32 -0800
parents fe3ae7c95e65
children 105b628e3bfa
comparison
equal deleted inserted replaced
135:a3d15c046e67 136:375515ab60ba
86 def multikube(ctx): # danger- wipes previous k3s 86 def multikube(ctx): # danger- wipes previous k3s
87 from multikube_config import server_node, nodes 87 from multikube_config import server_node, nodes
88 ctx.run(cmd + 'inventory.py multikube_wipe.py', pty=True) 88 ctx.run(cmd + 'inventory.py multikube_wipe.py', pty=True)
89 ctx.run(cmd + f'inventory.py multikube.py --limit {server_node}', pty=True) 89 ctx.run(cmd + f'inventory.py multikube.py --limit {server_node}', pty=True)
90 if nodes: 90 if nodes:
91 ctx.run(cmd + f'inventory.py multikube.py --limit {",".join(nodes)}', pty=True) 91 ctx.run(cmd + f'inventory.py multikube.py {" ".join(f"--limit {n}" for n in nodes)}', pty=True)
92 print("""now try
93 curl http://10.43.0.10:9153/metrics | head
94 k3s kubectl run hello --image crccheck/hello-world
95 curl -m2 http://`kubectl get pod/hello '-o=jsonpath={.status.podIP}'`:8000
96 """)
92 97
93 98
94 @task 99 @task
95 def all(ctx): 100 def all(ctx):
96 configs = [ 101 configs = [