-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yml
More file actions
49 lines (49 loc) · 1.11 KB
/
Copy pathdeployment.yml
File metadata and controls
49 lines (49 loc) · 1.11 KB
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
49
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: DRONE_REPO_NAME-deployment
spec:
revisionHistoryLimit: 3
replicas: 1
template:
metadata:
labels:
app: DRONE_REPO_NAME-deployment
spec:
containers:
- name: DRONE_REPO_NAME
image: gre.docker.target.com/DRONE_REPO_NAME:DEPLOY_VERSION
imagePullPolicy: Always
resources:
limits:
cpu: 500m
memory: 800Mi
requests:
cpu: 50m
memory: 400Mi
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 60
timeoutSeconds: 5
periodSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 60
timeoutSeconds: 5
periodSeconds: 5
failureThreshold: 3
ports:
- containerPort: 80
env:
- name: NODE_ENV
value: prod
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate