I am trying to build this simple website in Hugo that tells me stuff about my Kubernetes environment. I have a small service that calls the Kubernetes API and returns the result in JSON to hugo. Is it possible in someway - either directly in Hugo or maybe with a js-script added in Hugo - to call and update the getJson result when someone goes to example.com/service/nodes for example?
Hugo is a static site generator, So it generates HTML and doesn’t take any action after generating it. So it’s not possible with Hugo GetJson. Maybe jQuery will help you to do the task. See jQuery.getJSON() | jQuery API Documentation