From 939aa131829bcf103cb37d5659d29c53034cd00e Mon Sep 17 00:00:00 2001 From: Igor Egorov Date: Mon, 29 May 2023 11:25:46 +0300 Subject: [PATCH] livenessProbe --- deploy/django.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/deploy/django.yml b/deploy/django.yml index 14eaf68..9e8b21e 100644 --- a/deploy/django.yml +++ b/deploy/django.yml @@ -22,6 +22,7 @@ spec: command: ["sh", "-c", "python manage.py migrate && python manage.py runserver 0.0.0.0:${DJANGO_PORT}"] ports: - containerPort: 8000 + name: django-port envFrom: - configMapRef: name: postamates-configmap @@ -32,18 +33,18 @@ spec: limits: memory: "1500Mi" cpu: "300m" - # readinessProbe: - # httpGet: - # path: /healthz - # port: 3000 - # initialDelaySeconds: 3 - # periodSeconds: 3 - # livenessProbe: - # httpGet: - # path: /healthz - # port: 3000 - # initialDelaySeconds: 3 - # periodSeconds: 3 + readinessProbe: + httpGet: + path: /api/ao_rayons + port: django-port + initialDelaySeconds: 3 + periodSeconds: 3 + livenessProbe: + httpGet: + path: /api/ao_rayons + port: django-port + initialDelaySeconds: 3 + periodSeconds: 3 --- apiVersion: v1 kind: Service