Suggestion Needed: Liveness & Readiness Probe Path for Angular Application Containers

Hi Team,

I am adding liveness and readiness probe configurations for my Angular application containers deployed in Kubernetes. I need a suggestion on what path to use for the httpGet probes.

Below is the current probe configuration I am planning to use:

livenessProbe:
httpGet:
path: /index.html
port: 80
initialDelaySeconds: 30
periodSeconds: 15

readinessProbe:
httpGet:
path: /index.html
port: 80
initialDelaySeconds: 30
periodSeconds: 15

I want to confirm:

  • Should I use /index.html or / as the probe path?
  • Is this approach fine for Angular front-end containers, or would you suggest a different health endpoint/path?

Appreciate your inputs!

Thanks
Samantha