From 135396083d594ab77418029c31f6a3a8ee246a2e Mon Sep 17 00:00:00 2001 From: Noha Ihab <49988746+NohaIhab@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:29:04 +0300 Subject: [PATCH] readme: Add to proxy instructions the KServe and Knative proxy configs (#112) --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 38fafe4..ca87727 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,31 @@ tox -e kubeflow-local ### Run behind proxy +#### Prerequisites for KServe UATs + +To be able to run the KServe UATs behind proxy, first you need to configure `kserve-controller` +and `knative-serving` charms to function behind proxy. + +> [!NOTE] +> For information on how to fill out the proxy config values, see the `Running using Notebook > Prerequisites` section below. + +1. Set the `http-proxy`, `https-proxy`, and `no-proxy` configs in `kserve-controller` charm +``` +juju config kserve-controller http-proxy=: https-proxy=: no-proxy=,,127.0.0.1,localhost,/24,,.svc,.local +``` + +2. Set the `http-proxy`, `https-proxy`, and `no-proxy` configs in `knative-serving` charm +``` +juju config knative-serving http-proxy=: https-proxy=: no-proxy=,,127.0.0.1,localhost,/24,,.svc,.local +``` + +For Example: +``` +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,localhost,10.0.2.0/24,ip-10-0-2-157,.svc,.local + +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,localhost,10.0.2.0/24,ip-10-0-2-157,.svc,.local +``` + #### Running using Notebook ##### Prerequistes