Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge KF-5945-configure-proxy-dev-branch into main #106

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

DnPlas
Copy link
Contributor

@DnPlas DnPlas commented Aug 23, 2024

NohaIhab and others added 3 commits August 20, 2024 17:41
* add poddefault and configure kfp tests

* kfp: use dict.get to avoid KeyError

* configure katib uats

* configure training uats

* add testing with proxy instructions to README
* Prefetch mnist dataset in tfjob to solve proxy problems
* tests: add proxy option to test file for driver

Adding a proxy option to the driver/test_kubeflow_workloads.py script, will allow users to tell
the driver it will run in a proxied environment. With this, a PodDefault will be used for setting
environment variables (NO_PROXY, HTTP_PROXY, HTTPS_PROXY) in the Pod(s) that execute the Job for UATs.

Fixes #96
Copy link
Contributor

@NohaIhab NohaIhab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx @DnPlas, there are some small changes we need to make. Left 2 comments.

Testing

I was able to see the CKF uats pass by first configuring knative-serving and kserve-controller:

juju config knative-serving http-proxy=http://10.0.13.50:3128/ https-proxy=http://10.0.13.50:3128/ no-proxy=10.1.0.0/16,10.152.183.0/24,127.0.0.1,10.0.2.0/24,ip-10-0-2-157,.svc,.local,localhost

juju config kserve-controller http-proxy=http://10.0.13.50:3128/ https-proxy=http://10.0.13.50:3128/ no-proxy=10.1.0.0/16,10.152.183.0/24,127.0.0.1,10.0.2.0/24,ip-10-0-2-157,.svc,.local,localhost

then run the uats (excluding mlflow):

tox -e uats-local -- --filter "not mlflow" --proxy http_proxy="http://10.0.13.50:3128/" https_proxy="http://10.0.13.50:3128/" no_proxy="10.1.0.0/16,10.152.183.0/24,127.0.0.1,10.0.2.0/24,ip-10-0-2-157,.svc,.local,localhost"

README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
Copy link
Contributor

@NohaIhab NohaIhab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DnPlas DnPlas merged commit b40dfb3 into main Aug 28, 2024
1 check passed
@DnPlas DnPlas deleted the KF-5945-configure-proxy-dev-branch branch August 28, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure the UATs to run behind a proxy
3 participants