How to set kubernetes probes for react app?

5/13/2019

Currently I started to use a kubernetes environment to deploy a react app. One thing that should be set are the healthiness and readiness probes. How should they look like for a react app, or are probes used for frontend apps?

-- user2329919
kubernetes
reactjs

1 Answer

5/13/2019

If you have a separate pod for your front end, I assume a Web server like Apache or Nginx, the health check would just make sure the Webserver is alive. So you are correct that this would be a simple request, f.e. to the home page which is just static html. For the backend a different check would be in order. If you have just a single pod you need to check both with a health check.

-- Thomas
Source: StackOverflow