kserve / kserve

Standardized Serverless ML Inference Platform on Kubernetes
https://kserve.github.io/website/
Apache License 2.0
3.51k stars 1.05k forks source link

Question: How to access the swagger UI when port forwaring the istio gateway service? #2669

Closed SebastianScherer88 closed 9 months ago

SebastianScherer88 commented 1 year ago

Question, not a feature.

In this section you describe how to access the Swagger UI

What I havent been able to work out yet is how to access that page from my local machine's webbrowser - is the best way to find chrome/firefox utilities that allow me to specify headers ? 🤔

Thanks for the new 0.10 release, looks exciting!

sivanantha321 commented 9 months ago

@SebastianScherer88 You can port forward to the pod to access the swagger UI from your local machine's web browser.

sivanantha321 commented 9 months ago

/close

oss-prow-bot[bot] commented 9 months ago

@sivanantha321: Closing this issue.

In response to [this](https://github.com/kserve/kserve/issues/2669#issuecomment-1886691130): >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
boringbyte commented 7 months ago

@SebastianScherer88 . Not sure if you were able to solve the issue or not, I stumbled upon the same issue and followed below steps to resolve the issue as I'm using minikube. I'm a newbie, so there might be other simple ways to do this.

kubectl get svc -n kserve-test
kubectl get deployments -n kserve-test
kubectl expose deployment sklearn-iris-predictor-00001-deployment -n kserve-test --type=NodePort --port=8080
kubectl get svc -n kserve-test

kubectl port-forward service/sklearn-iris-predictor-00001-deployment -n kserve-test 8080:8080 --> Ubuntu Terminal
ssh -N -f -L 127.0.0.1:8080:127.0.0.1:8080 username_of_VM@VM_IP --> In local windows terminal

Access link using http://localhost:8080/docs locally.