Merge pull request #97 from sirius0xdev/fix/paaas-landing-probes

fix: correct port + robust probes for paaas-landing
This commit is contained in:
sirius0xdev 2026-05-04 19:15:04 -04:00 committed by GitHub
commit d86b65448b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,19 +19,21 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8080 - containerPort: 8080
protocol: TCP
resources: resources:
requests: requests:
cpu: 10m cpu: 10m
memory: 100Mi memory: 64Mi
limits: limits:
cpu: 50m cpu: 50m
memory: 150Mi memory: 128Mi
startupProbe: startupProbe:
httpGet: httpGet:
path: / path: /
port: 8080 port: 8080
scheme: HTTP scheme: HTTP
initialDelaySeconds: 5 initialDelaySeconds: 15
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 5 timeoutSeconds: 5
failureThreshold: 30 failureThreshold: 30
@ -39,17 +41,26 @@ spec:
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / # or /index.html if needed path: /
port: 8080 port: 8080
initialDelaySeconds: 30 scheme: HTTP
periodSeconds: 30 initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
port: 8080 port: 8080
initialDelaySeconds: 30 scheme: HTTP
periodSeconds: 30 initialDelaySeconds: 40
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@ -63,6 +74,6 @@ spec:
app: paaas-landing app: paaas-landing
ports: ports:
- protocol: TCP - protocol: TCP
port: 8080 port: 80
targetPort: 8080 targetPort: 8080
type: ClusterIP type: ClusterIP