Skip to content

Commit 3912162

Browse files
committed
Fixing minor error on yaml format
1 parent 2c17c68 commit 3912162

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

yamls/k8sliveness.yaml

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,32 @@ apiVersion: extensions/v1beta1
22
kind: Deployment
33
metadata:
44
name: k8sliveness
5-
labels:
6-
env: prod
7-
spec:
8-
replicas: 3
9-
selector:
10-
matchLabels:
5+
spec:
6+
replicas: 3
7+
selector:
8+
matchLabels:
9+
env: prod
10+
template:
11+
metadata:
12+
labels:
1113
env: prod
12-
strategy:
13-
type: RollingUpdate
14-
rollingUpdate:
15-
maxSurge: 1
16-
maxUnavailable: 1
17-
template:
18-
metadata:
19-
labels:
20-
env: prod
21-
spec:
22-
containers:
23-
- name: k8sliveness
24-
image: twogghub/k8s-workshop:1.3-liveness
25-
livenessProbe:
26-
httpGet:
27-
path: /healthy
28-
port: 9090
29-
initialDelaySeconds: 5
30-
timeoutSeconds: 1
31-
periodSeconds: 10
32-
failureThreshold: 3
33-
ports:
34-
- containerPort: 9090
14+
strategy:
15+
type: RollingUpdate
16+
rollingUpdate:
17+
maxSurge: 1
18+
maxUnavailable: 1
19+
spec:
20+
containers:
21+
- name: k8sliveness
22+
image: twogghub/k8s-workshop:1.3-liveness
23+
livenessProbe:
24+
httpGet:
25+
path: /healthy
26+
port: 9090
27+
initialDelaySeconds: 5
28+
timeoutSeconds: 1
29+
periodSeconds: 10
30+
failureThreshold: 3
31+
ports:
32+
- name: http
33+
containerPort: 9090

0 commit comments

Comments
 (0)