diff --git a/rl_coach/orchestrators/kubernetes_orchestrator.py b/rl_coach/orchestrators/kubernetes_orchestrator.py index 4bb8702..71336c7 100644 --- a/rl_coach/orchestrators/kubernetes_orchestrator.py +++ b/rl_coach/orchestrators/kubernetes_orchestrator.py @@ -1,4 +1,4 @@ - +import os import uuid from rl_coach.orchestrators.deploy import Deploy, DeployParameters from kubernetes import client, config @@ -41,6 +41,9 @@ class Kubernetes(Deploy): self.deploy_parameters.namespace = current_context['context']['namespace'] self.nfs_pvc_name = 'nfs-checkpoint-pvc' + if os.environ.get('http_proxy'): + client.Configuration._default.proxy = os.environ.get('http_proxy') + def setup(self) -> bool: if not self.deploy_parameters.redis_ip: