From 4a6664f9e1ebc8308eadfe122feba934d54619d8 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Tue, 6 Jan 2026 11:31:04 -0300 Subject: [PATCH] SIENTIAPDE-1461 SIENTIAPDE-1461 Update values.yaml to configure resource limits and requests, enhance liveness and readiness probes, and set PYPI_SERVER environment variable for improved application performance and monitoring. --- values.yaml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/values.yaml b/values.yaml index 703407c..e6a0fb7 100644 --- a/values.yaml +++ b/values.yaml @@ -52,7 +52,7 @@ securityContext: {} # runAsUser: 1000 -resources: {} +resources: # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following @@ -64,24 +64,37 @@ resources: {} # cpu: 100m # memory: 128Mi + limits: + cpu: 1000m + memory: 2048Mi + requests: + cpu: 100m + memory: 128Mi + # This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ livenessProbe: exec: command: - sh - -c - - pgrep -f "orchestrator.worker.worker" - initialDelaySeconds: 20 - periodSeconds: 30 + - | + curl -sf http://localhost:9090/metrics | grep -q '^app_up{.*} 1' + initialDelaySeconds: 30 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 3 readinessProbe: exec: command: - sh - -c - - pgrep -f "orchestrator.worker.worker" - initialDelaySeconds: 10 - periodSeconds: 15 + - | + curl -sf http://localhost:9090/metrics | grep -q '^app_up{.*} 1' + initialDelaySeconds: 20 + periodSeconds: 10 + timeoutSeconds: 3 + failureThreshold: 2 # This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/ @@ -151,7 +164,7 @@ env: - name: GITHUB_REPO_URL value: "git@github.com:Aignosi/sientia-dataops-orchestrator_temporal.git" - name: GITHUB_BRANCH - value: "main" + value: "fix/SIENTIAPDE-1461" - name: PYTHON_APP value: "orchestrator.worker.worker" @@ -229,6 +242,9 @@ env: - name: TEMPORAL_LABORIOUS_NAMESPACE value: "laborious" + - name: PYPI_SERVER + value: "http://library-distribution-server.library.svc.cluster.local:5000" + ssh: enabled: true secretName: git-ssh-key-sientia-orchestrator-worker