add support for running kubernetes orchestrator from behind proxy
This commit is contained in:
1 parent
ad4d2c3053
commit
cd733b2404
1 file changed
+4
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user