kubernetes-up-and-running / kuard

Demo app for Kubernetes Up and Running book
Apache License 2.0
1.56k stars 535 forks source link

[Feature Request] Provide a JSON endpoint for the Pod's environment #20

Open DazWilkin opened 5 years ago

DazWilkin commented 5 years ago

I may have missed this but, it would be useful to serve a JSON endpoint to facilitate use of e.g. curl.

I deployed kuard and then wanted to show different Pods responding behind Load-Balanced requests. Unaware of a JSON endpoint, I would have had to parse e.g. HOSTNAME from the HTML. Not impossible but it'd be sweet to have JSON results.