sixfeetup / scaf

scaf provides developers and DevOps engineers with a complete blueprint for a new project using Kubernetes
BSD 3-Clause "New" or "Revised" License
66 stars 9 forks source link

Add liveness and readiness probes #146

Open nvernooy opened 10 months ago

nvernooy commented 10 months ago

AC:

Tech notes: Here is an example about how to do this in django Status probes will fail if the host does not match django allowed hosts. To get around this add a host header to liveness and readiness probes that shown in the example below

readinessProbe:
  httpGet:
    path: /health/
    port: 8000
    httpHeaders:
    - name: Host
      value: <your-allowed-hostname>