[21.02.20] Probes and protocol

This commit is contained in:
andrewso 2020-02-21 14:19:42 +00:00
parent 58a8d6c0f4
commit 7cfc129cb4
2 changed files with 17 additions and 6 deletions

View File

@ -13,7 +13,7 @@ spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxSurge: 1
maxUnavailable: 0
template:
metadata:
@ -36,7 +36,6 @@ spec:
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: DATABASE_URL
valueFrom:
secretKeyRef:
@ -60,13 +59,24 @@ spec:
ports:
- containerPort: 9090
name: RESOURCE_NAME
readinessProbe:
livenessProbe:
httpGet:
path: /
port: 9090
timeoutSeconds: 2
successThreshold: 2
failureThreshold: 2
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
port: 9090
path: /
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 10
imagePullPolicy: Always
resources:
requests:

View File

@ -9,6 +9,7 @@ spec:
app: RESOURCE_NAME
ports:
- port: 9090
protocol: TCP
targetPort: 9090
sessionAffinity: None
type: ClusterIP