diff --git a/infra/helm/meshdb/templates/meshweb.yaml b/infra/helm/meshdb/templates/meshweb.yaml index 25dd7f07..1ec56ba7 100644 --- a/infra/helm/meshdb/templates/meshweb.yaml +++ b/infra/helm/meshdb/templates/meshweb.yaml @@ -47,18 +47,38 @@ spec: mountPath: /opt/meshdb/static {{ if eq .Values.meshweb.liveness_probe "true" }} livenessProbe: - exec: - command: - - curl - - http://127.0.0.1:{{ .Values.meshweb.port }}/api/v1 - periodSeconds: 3 - initialDelaySeconds: 4 - timeoutSeconds: 3 - {{ end }} - livenessProbe: - {{- toYaml .Values.livenessProbe | nindent 12 }} + exec: + command: + - bash + - -c + - 'curl http://127.0.0.1:{{ .Values.meshweb.port }}/api/v1/ -H "Host: db.nycmesh.net" -s | grep meshin' + periodSeconds: 10 + initialDelaySeconds: 30 + timeoutSeconds: 3 + {{ end }} + {{ if eq .Values.meshweb.readiness_probe "true" }} readinessProbe: - {{- toYaml .Values.readinessProbe | nindent 12 }} + exec: + command: + - bash + - -c + - 'curl http://127.0.0.1:{{ .Values.meshweb.port }}/api/v1/ -H "Host: db.nycmesh.net" -s | grep meshin' + periodSeconds: 3 + initialDelaySeconds: 10 + timeoutSeconds: 3 + {{ end }} + {{ if eq .Values.meshweb.startup_probe "true" }} + startupProbe: + exec: + command: + - bash + - -c + - 'curl http://127.0.0.1:{{ .Values.meshweb.port }}/api/v1/ -H "Host: db.nycmesh.net" -s | grep meshin' + periodSeconds: 3 + initialDelaySeconds: 20 + timeoutSeconds: 3 + failureThreshold: 20 + {{ end }} resources: {{- toYaml .Values.meshweb.resources | nindent 12 }} volumes: diff --git a/infra/helm/meshdb/values.yaml b/infra/helm/meshdb/values.yaml index 91174426..0d06e32c 100644 --- a/infra/helm/meshdb/values.yaml +++ b/infra/helm/meshdb/values.yaml @@ -38,6 +38,8 @@ meshweb: static_pvc_name: "meshdb-static-pvc" static_pvc_size: "1Gi" liveness_probe: "true" + readiness_probe: "true" + startup_probe: "true" image: repository: willnilges/meshdb tag: main