From 47c14a4acc7b99647ac7fabfef201af337725579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Ar=C3=A8s?= Date: Mon, 16 Oct 2023 10:16:49 -0400 Subject: [PATCH] Set Set cpu/memory requests/limits for tekton-results-api init containers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Init containers are harder to figure out the required resources as they do not run long enough to have metrics collected. Both container worked with 5m/32Mi in a dev environment. Put the limits higher to make sure they works in production environment even though the nature of the work done by both should not differ from dev to production environment. PLNSRVCE-1476 Signed-off-by: Hugo Arès --- .../tekton-results/minio-create-bucket.yaml | 7 +++++++ .../tekton-results/api-migrator-config.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/developer/openshift/gitops/argocd/pipeline-service/tekton-results/minio-create-bucket.yaml b/developer/openshift/gitops/argocd/pipeline-service/tekton-results/minio-create-bucket.yaml index 0caab41da..2f0ae9545 100644 --- a/developer/openshift/gitops/argocd/pipeline-service/tekton-results/minio-create-bucket.yaml +++ b/developer/openshift/gitops/argocd/pipeline-service/tekton-results/minio-create-bucket.yaml @@ -58,6 +58,13 @@ spec: subPath: s3-cert.crt - name: tmp-mc-volume mountPath: /tmp + resources: + requests: + cpu: 5m + memory: 32Mi + limits: + cpu: 100m + memory: 128Mi securityContext: readOnlyRootFilesystem: true runAsNonRoot: true diff --git a/operator/gitops/argocd/pipeline-service/tekton-results/api-migrator-config.yaml b/operator/gitops/argocd/pipeline-service/tekton-results/api-migrator-config.yaml index d8cd191c5..7aff0053f 100644 --- a/operator/gitops/argocd/pipeline-service/tekton-results/api-migrator-config.yaml +++ b/operator/gitops/argocd/pipeline-service/tekton-results/api-migrator-config.yaml @@ -34,5 +34,12 @@ spec: secretKeyRef: name: tekton-results-database key: db.name + resources: + requests: + cpu: 5m + memory: 32Mi + limits: + cpu: 100m + memory: 128Mi securityContext: readOnlyRootFilesystem: true