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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user