Open mshahat opened 5 years ago
I believe you followed below like steps:
1) Get the latest API-Scout app and build docker image.
2) Update image name & EXTERNAL-IP(minikube or cluster ip) values in apiscout.yml file.
3) Build your microservice along with /swaggerspec handler.
4) Update the annotations in your microservice yml file.
5) Deploy the application & check the status once it is deployed open
minikube service apiscout-svc --url
in browser.
6) Use 'try it out' under API paths to verify the swagger.
Let me know if you tried something else along with exact configuration to re produce the issue.
Thanks, @nareshkumarthota this is running in a production like up, with a full functioning Kubernetes cluster, not minikube. In production like environments, we're not using EXTERNAL IPs but Ingress routes. in our case we're using nginx ingress routes on kubernetes.
please let me know if you need more understanding to the issue.
Thanks,
I need some details like:
@mshahat can you please provide more details?
Hi,
The expected behaviour is may be 1) ability to annotate ingresses as well, and via both the Service and the Ingress, the right endpoints could be served
2) a tactical solution could be, annotating the service with another attribute e.g. apiscout/swaggerPublicEndpoint where we could capture the ingress endpoint url, or may be Mashery public endpoint
HTH,
@mshahat
Annotation support for ingress end url is added. Code changes pushed to branch 'feature-issue-15', give a try now.
check annotation name in readme page under #requirements-for-kubernetes
Thanks, @nareshkumarthota, will test ...
@mshahat Any update with the testing on your end?
Hi Jon, apologies, will test in a week time and let you know.
Cheers,
Hi,
Swagger presented by APIScout has the private K8S svc IP. Accordingly, Swagger is not usable.
Thanks,