-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Enable swagger-ui #1509
Comments
I got it to work on minikube v0.19.0 using the config key "Features.EnableSwaggerUI" like so.
|
Thanks @kmjohny! |
The above didn't worked for me on minikube, http://localhost:8001/swagger-ui gives only some json, not the UI, installed the swagger on minkube as fowllow and it works: kubectl run swagger-ui --image=swaggerapi/swagger-ui:latest |
Hello all, Does someone know how to enable swagger ui in Kubernetes cluster (not in minikube)? Hong |
BUG REPORT
Minikube version (use
minikube version
): v0.19.0Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName
): xhyvecat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): minikube-v0.18.0.isoWhat happened:
Trying to enable the swagger-ui by passing flag to apiserver:
What you expected to happen:
After proxying to kubeapi I should be able to open a browser and see swagger webpage at:
http://localhost:8001/swagger-ui
but the webpage only shows the api spec.How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
I tested this on a default cluster running in AWS and it worked. So not sure if just some small thing that's missing from localkube. I'm happy to send PR back to resolve!
The text was updated successfully, but these errors were encountered: