Skip to content

Commit

Permalink
add liveness test for core dp.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxinlee2015 committed Mar 18, 2021
1 parent 11a670f commit f42f306
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion core/dp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ spec:
selector:
matchLabels:
app: goserver
revisionHistoryLimit: 3
minReadySeconds: 5
strategy:
type: RollingUpdate
Expand All @@ -24,3 +23,18 @@ spec:
- name: goserver
image: mirrors.tencent.com/wessonli-test/goserver:latest
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
- name: content-type
value: application/json
path: /todos/1
port: 8080
scheme: HTTP
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
# nodeSelector:
# kubernetes.io/hostname: 9.219.90.10

0 comments on commit f42f306

Please sign in to comment.