-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
37 lines (37 loc) · 885 Bytes
/
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: rku-deployment
spec:
replicas: 2
template:
metadata:
labels:
app: rku
spec:
containers:
- name: rku
image: gcr.io/study-161802/rku:${CIRCLE_BUILD_NUM}
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "300m"
ports:
- containerPort: 3000
env:
- name: RAILS_ENV
value: "${RAILS_ENV}"
- name: DBHOST
value: "${DBHOST}"
- name: DBPASS
value: "${DBPASS}"
- name: SECRET_KEY_BASE
value: "${SECRET_KEY_BASE}"
strategy:
type: RollingUpdate
rollingUpdate:
# A minimum of 70% of the pods will be available while performing 0 downtime deploy
maxUnavailable: "30%"