-
Notifications
You must be signed in to change notification settings - Fork 315
/
nodejs-deployment.yml
49 lines (48 loc) · 1.01 KB
/
nodejs-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nodeappdeployment
spec:
replicas: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 2
maxUnavailable: 2
selector:
matchLabels:
app: nodewebapp
template:
metadata:
labels:
app: nodewebapp
spec:
containers:
- name: nodewebappcontainer
image: dockerhandson/node-web-app:1
imagePullPolicy: Always
imagePullSecrets:
- name: privatereposecret
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 15
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
resources:
limits:
cpu: 300m
memory: 128Mi
requests:
cpu: 100m
memory: 64Mi