From 67f1b010274eefb5ac71fc6570e318266a5e71ef Mon Sep 17 00:00:00 2001 From: "Gabriel R. Antunes" Date: Fri, 29 Nov 2024 14:38:31 -0400 Subject: [PATCH] chore(cd/devops): containerSecurityContext --- .devops/api-service/values.common.yml | 28 +++++++++++-------- .../values.common.yml | 4 +++ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.devops/api-service/values.common.yml b/.devops/api-service/values.common.yml index 0017313a..baee79b3 100644 --- a/.devops/api-service/values.common.yml +++ b/.devops/api-service/values.common.yml @@ -1,24 +1,22 @@ applicationName: ladesa-ro-api -service: - enabled: true - type: NodePort - ports: - - name: web-service - port: 80 - targetPort: web-port - deployment: - enabled: false - replicas: 1 + enabled: false - containerSecurityContext: false + containerSecurityContext: + runAsNonRoot: false + readOnlyRootFilesystem: false ports: - containerPort: 3000 name: web-port + resources: + requests: + cpu: "50m" + memory: "1Gi" + readinessProbe: httpGet: path: /health/ @@ -38,5 +36,13 @@ deployment: failureThreshold: 30 periodSeconds: 10 +service: + enabled: true + type: NodePort + ports: + - name: web-service + port: 80 + targetPort: web-port + ingress: enabled: false diff --git a/.devops/docs-npm-api-client-fetch/values.common.yml b/.devops/docs-npm-api-client-fetch/values.common.yml index c6b20391..3452b2af 100644 --- a/.devops/docs-npm-api-client-fetch/values.common.yml +++ b/.devops/docs-npm-api-client-fetch/values.common.yml @@ -4,6 +4,10 @@ deployment: replicas: 1 enabled: false + containerSecurityContext: + runAsNonRoot: false + readOnlyRootFilesystem: false + ports: - containerPort: 80 name: web-port