We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b78b704 commit 2cff29cCopy full SHA for 2cff29c
1 file changed
manifests/deployment.yml
@@ -3,10 +3,15 @@ kind: Deployment
3
metadata:
4
name: "homepage"
5
spec:
6
- replicas: 2
+ replicas: 1
7
selector:
8
matchLabels:
9
app: "homepage"
10
+ strategy:
11
+ type: RollingUpdate
12
+ rollingUpdate:
13
+ maxSurge: 1
14
+ maxUnavailable: 1
15
template:
16
17
labels:
@@ -17,3 +22,10 @@ spec:
22
image: "weihanli/homepage"
18
23
ports:
19
24
- containerPort: 80
25
+ resources:
26
+ limits:
27
+ cpu: 50m
28
+ memory: 64Mi
29
+ requests:
30
+ cpu: 10m
31
+ memory: 16Mi
0 commit comments