From 8c60b75cd1c137c3e3c4cb8e82f0bb25d64c9f2a Mon Sep 17 00:00:00 2001 From: Pierre Ozoux <pierre@ozoux.net> Date: Mon, 24 Apr 2023 15:31:27 +0200 Subject: [PATCH] refactor: Nc --- nextcloud/manifests/app.yml | 41 +++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/nextcloud/manifests/app.yml b/nextcloud/manifests/app.yml index 210ca03..bba9ee5 100644 --- a/nextcloud/manifests/app.yml +++ b/nextcloud/manifests/app.yml @@ -104,25 +104,11 @@ spec: env: - name: BACKEND_HOST value: localhost - livenessProbe: - httpGet: - path: /heartbeat - port: 80 - httpHeaders: - - name: Host - value: localhost - readinessProbe: - httpGet: - path: /heartbeat - port: 80 - httpHeaders: - - name: Host - value: localhost resources: requests: - memory: "80Mi" + memory: "100Mi" limits: - memory: "400Mi" + memory: "500Mi" - command: ["/bin/sh"] args: - -c @@ -196,19 +182,30 @@ spec: httpHeaders: - name: Host value: localhost + failureThreshold: 3 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 3 readinessProbe: - exec: - command: - - /php-fpm-healthcheck + httpGet: + path: /heartbeat + port: 80 + httpHeaders: + - name: Host + value: localhost + failureThreshold: 3 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 3 ports: - containerPort: 9000 name: api protocol: TCP resources: requests: - memory: "80Mi" + memory: "200Mi" limits: - memory: "400Mi" + memory: "500Mi" terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst @@ -306,5 +303,5 @@ spec: name: cli restartPolicy: OnFailure schedule: '*/5 * * * *' - successfulJobsHistoryLimit: 3 + successfulJobsHistoryLimit: 1 suspend: false -- GitLab