From 2c106ef6aa511f7588e055c424a3d6c28b2a15a3 Mon Sep 17 00:00:00 2001 From: sirius0xdev Date: Mon, 4 May 2026 23:13:09 +0000 Subject: [PATCH] fix: correct port to 8080 + robust startup/readiness/liveness probes for paaas-landing - Fixed containerPort, Service targetPort, and all probes to use 8080 - Added startupProbe (15s delay, 30 failure threshold) to prevent connection refused errors - Improved readiness and liveness probes with better timing and timeoutSeconds - Resolves 'fault filter abort' and 'connection refused' probe failures --- .../customer1/paaas-landing/deployment.yaml | 53 +++++++++++-------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/apps/base/customer1/paaas-landing/deployment.yaml b/apps/base/customer1/paaas-landing/deployment.yaml index b9f9ee5..54eaf16 100644 --- a/apps/base/customer1/paaas-landing/deployment.yaml +++ b/apps/base/customer1/paaas-landing/deployment.yaml @@ -15,41 +15,52 @@ spec: spec: containers: - name: web - image: ghcr.io/sirius0xdev/hermes_workspace:paaas-landing + image: ghcr.io/sirius0xdev/hermes_workspace:paaas-landing imagePullPolicy: Always ports: - - containerPort: 8080 + - containerPort: 8080 + protocol: TCP resources: requests: cpu: 10m - memory: 100Mi + memory: 64Mi limits: cpu: 50m - memory: 150Mi + memory: 128Mi + startupProbe: - httpGet: - path: / - port: 8080 - scheme: HTTP - initialDelaySeconds: 5 - periodSeconds: 5 - timeoutSeconds: 5 - failureThreshold: 30 - successThreshold: 1 - + httpGet: + path: / + port: 8080 + scheme: HTTP + initialDelaySeconds: 15 + periodSeconds: 5 + timeoutSeconds: 5 + failureThreshold: 30 + successThreshold: 1 + readinessProbe: httpGet: - path: / # or /index.html if needed + path: / port: 8080 - initialDelaySeconds: 30 - periodSeconds: 30 - + scheme: HTTP + initialDelaySeconds: 3 + periodSeconds: 5 + timeoutSeconds: 5 + failureThreshold: 3 + successThreshold: 1 + livenessProbe: httpGet: path: / port: 8080 - initialDelaySeconds: 30 - periodSeconds: 30 + scheme: HTTP + initialDelaySeconds: 40 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 + successThreshold: 1 + --- apiVersion: v1 kind: Service @@ -63,6 +74,6 @@ spec: app: paaas-landing ports: - protocol: TCP - port: 8080 + port: 80 targetPort: 8080 type: ClusterIP