Skip to content

Commit 2cff29c

Browse files
committed
update deployment
1 parent b78b704 commit 2cff29c

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

manifests/deployment.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ kind: Deployment
33
metadata:
44
name: "homepage"
55
spec:
6-
replicas: 2
6+
replicas: 1
77
selector:
88
matchLabels:
99
app: "homepage"
10+
strategy:
11+
type: RollingUpdate
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
1015
template:
1116
metadata:
1217
labels:
@@ -17,3 +22,10 @@ spec:
1722
image: "weihanli/homepage"
1823
ports:
1924
- containerPort: 80
25+
resources:
26+
limits:
27+
cpu: 50m
28+
memory: 64Mi
29+
requests:
30+
cpu: 10m
31+
memory: 16Mi

0 commit comments

Comments
 (0)