From db153d31ba189898f932c9e664097cbcd0f6497c Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Tue, 27 Aug 2024 13:20:59 +0000 Subject: [PATCH] readme: Add to proxy instructions the KServe and Knative proxy configs --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index c5af1ad..873a9dd 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