mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Adding kubernetes orchestrator for rollouts, adding requirements for incremental docker builds
This commit is contained in:
committed by
zach dwiel
parent
6541bc76b9
commit
ce9838a7d6
18
rl_coach/orchestrators/test.py
Normal file
18
rl_coach/orchestrators/test.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from rl_coach.orchestrators.kubernetes_orchestrator import KubernetesParameters, Kubernetes
|
||||
|
||||
# image = 'gcr.io/constant-cubist-173123/coach:latest'
|
||||
image = 'ajaysudh/testing:coach'
|
||||
command = ['python3', 'rl_coach/rollout_worker.py']
|
||||
# command = ['sleep', '10h']
|
||||
|
||||
params = KubernetesParameters(image, command, kubeconfig='~/.kube/config', redis_ip='redis-service.ajay.svc', redis_port=6379, num_workers=10)
|
||||
# params = KubernetesParameters(image, command, kubeconfig='~/.kube/config')
|
||||
|
||||
obj = Kubernetes(params)
|
||||
if not obj.setup():
|
||||
print("Could not setup")
|
||||
|
||||
if obj.deploy():
|
||||
print("Successfully deployed")
|
||||
else:
|
||||
print("Could not deploy")
|
||||
Reference in New Issue
Block a user