1
0
mirror of https://github.com/google/nomulus synced 2026-01-07 14:05:44 +00:00

Add GKE readiness probe (#2735)

This commit is contained in:
Pavlo Tkach
2025-04-04 17:33:43 -04:00
committed by GitHub
parent 9dc3215624
commit 1096f201cd
10 changed files with 153 additions and 13 deletions

View File

@@ -20,6 +20,15 @@ spec:
ports:
- containerPort: 8080
name: http
startupProbe:
httpGet:
port: 8080
path: /ready/console
initialDelaySeconds: 1
timeoutSeconds: 60
successThreshold: 1
failureThreshold: 3
periodSeconds: 30
resources:
requests:
# explicit pod-slots 0 is required in order to downgrade node

View File

@@ -20,6 +20,15 @@ spec:
ports:
- containerPort: 8080
name: http
startupProbe:
httpGet:
port: 8080
path: /ready/pubapi
initialDelaySeconds: 1
timeoutSeconds: 60
successThreshold: 1
failureThreshold: 3
periodSeconds: 30
resources:
requests:
# explicit pod-slots 0 is required in order to downgrade node
@@ -62,12 +71,12 @@ spec:
minReplicas: 5
maxReplicas: 15
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 100
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 100
---
apiVersion: v1
kind: Service
@@ -77,9 +86,9 @@ spec:
selector:
service: pubapi
ports:
- port: 80
targetPort: http
name: http
- port: 80
targetPort: http
name: http
---
apiVersion: net.gke.io/v1
kind: ServiceExport