Add extra_bash_init_script to k8s glue. Default config is the raw config file (not created at runtime)

This commit is contained in:
allegroai
2020-11-11 16:31:25 +02:00
parent a61265effe
commit 40b3c1502d
2 changed files with 43 additions and 10 deletions

View File

@@ -52,7 +52,9 @@ def main():
k8s = K8sIntegration(
ports_mode=args.ports_mode, num_of_services=args.num_of_services, user_props_cb=user_props_cb,
overrides_yaml=args.overrides_yaml, trains_conf_file=args.pod_trains_conf, template_yaml=args.template_yaml)
overrides_yaml=args.overrides_yaml, trains_conf_file=args.pod_trains_conf, template_yaml=args.template_yaml,
extra_bash_init_script=K8sIntegration.get_ssh_server_bash(ssh_port_number=10022)
)
k8s.k8s_daemon(args.queue)