From 8c15e3735fa80b0873bb8cddd6c58eee59dab4d3 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Mon, 4 Nov 2024 22:49:46 +1100 Subject: [PATCH] Update k8s --- k8s/manifest.yaml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/k8s/manifest.yaml b/k8s/manifest.yaml index c8108ba..2afd79b 100644 --- a/k8s/manifest.yaml +++ b/k8s/manifest.yaml @@ -82,6 +82,14 @@ spec: limits: cpu: 200m memory: 512Mi + readinessProbe: + httpGet: + path: /api/pages + port: 8000 + livenessProbe: + httpGet: + path: /api/pages + port: 8000 imagePullSecrets: - name: github-image-pull-secret --- @@ -215,11 +223,11 @@ spec: value: "/app/.cache/uv" resources: requests: - cpu: 100m + cpu: 200m memory: 256Mi limits: - cpu: 500m - memory: 512Mi + cpu: 1000m + memory: 1000Mi - name: celery-beat image: "ghcr.io/wahyd4/links:main" @@ -247,10 +255,10 @@ spec: value: "/app/.cache/uv" resources: requests: - cpu: 100m - memory: 128Mi + cpu: 200m + memory: 256Mi limits: - cpu: 500m - memory: 512Mi + cpu: 1000m + memory: 1000Mi imagePullSecrets: - name: github-image-pull-secret