Speed up rolling deploys: allow surge, reduce startup delay
- maxSurge 0→1: new pods start before old ones terminate - minReadySeconds 10→5 - startupProbe: initialDelay 10→5s, period 5→3s
This commit is contained in:
parent
b7e0c3bc7a
commit
cebf6f3f69
1 changed files with 5 additions and 5 deletions
|
|
@ -5,11 +5,11 @@ metadata:
|
||||||
namespace: prop
|
namespace: prop
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
minReadySeconds: 10
|
minReadySeconds: 5
|
||||||
strategy:
|
strategy:
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
maxSurge: 0
|
maxSurge: 1
|
||||||
maxUnavailable: 1
|
maxUnavailable: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|
@ -67,9 +67,9 @@ spec:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 5000
|
port: 5000
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 3
|
||||||
failureThreshold: 12
|
failureThreshold: 10
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue