[20.02.20] Deleting Pods

This commit is contained in:
andyjk15 2020-02-21 14:17:01 +00:00
parent 10a3953934
commit 6c4e2d257d
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: JDBC_URL
valueFrom:
secretKeyRef:
@ -55,13 +54,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