Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

How to deploy PAI behind a proxy #2422

Closed
Breath123 opened this issue Mar 27, 2019 · 6 comments
Closed

How to deploy PAI behind a proxy #2422

Breath123 opened this issue Mar 27, 2019 · 6 comments
Assignees
Labels

Comments

@Breath123
Copy link

Organization Name: Individual

Short summary about the issue/question: Seems there is no configuration that support to deploy PAI behind a proxy.

Brief what process you are following: I followed the guide of "Deploy OpenPAI"[https://github.com/Microsoft/pai#deploy-openpai] to deploy PAI.

The guide of "Deploy OpenPAI"[https://github.com/Microsoft/pai#deploy-openpai]

How to reproduce it:

OpenPAI Environment: 3 Ubuntu host servers behind company's proxy.

  • OpenPAI version: latest with pai-v0.10.y branch
  • Cloud provider or hardware configuration: NA
  • OS (e.g. from /etc/os-release): Ubuntu 16.04
  • Kernel (e.g. uname -a):
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.): 40 cpu core and 1 Tesla V100 GPU of each host
  • Others:

Anything else we need to know:

@fanyangCS
Copy link
Contributor

fanyangCS commented Apr 2, 2019

OpenPAI should be able to work if you expose pylon to external networks. Only one public IP is required.

@Breath123
Copy link
Author

Hello fanyangCS,
@fanyangCS Thanks for your reply and I jump to the document of pylon followed by your suggestion. According to the document, the solution is "to deploy Pylon instances on these jump machines as a reverse proxy". Unfortunately, we can't access to that jump machines, and usually, we set the proxy-related env as "export http_proxy=proxy_ip:proxy_port; export https_proxy=proxy_ip:proxy_port;" to connect to the outside world.
So, do you have any suggestions about how to deploy behind a proxy when we can't deploy Pylon on jump machines?
Many thanks.

@fanyangCS
Copy link
Contributor

I am not sure I understand your requirements.

You want to deploy OpenPAI to an internal environment, and you would like to access it from outside?

Or you want the job on the OpenPAI platform to access external network?

@Breath123
Copy link
Author

@fanyangCS , I want to deploy OpenPAI to an internal environment and access it from internal. But deploy OpenPAI need to access the internet like install some software, pull docker images, and so on. The only way to access the internet in our internal environment is through the specified proxy.
Thus, the requirement is to deploy OpenPAI behind a proxy which allows internal hosts access to the internet.
As I know, this kind of proxy affects the configuration of k8s, and some k8s deployment tools like kubespray need to fill this kind of proxy in configuration files.

@fanyangCS
Copy link
Contributor

In this case, you can deploy OpenPAI from a local docker registry, where you need to move the public docker images to the docker registry. here is a related issue. you don't have to build the images by your own though. #1225

@Breath123
Copy link
Author

Thank you, I'll try it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants