-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeployment.yaml
More file actions
44 lines (44 loc) · 1.12 KB
/
deployment.yaml
File metadata and controls
44 lines (44 loc) · 1.12 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
apiVersion: apps/v1 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: cloud-example-app-deployment
spec:
selector:
matchLabels:
app: cloud-example-app
replicas: 2
template:
metadata:
labels:
app: cloud-example-app
spec:
containers:
- name: cloud-app
env:
- name: APP_DATABASE
value: postgres
- name: APP_DATABASE_USER
valueFrom:
secretKeyRef:
name: db-user
key: APP_DATABASE_USER
- name: APP_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: db-password
key: APP_DATABASE_PASSWORD
- name: APP_DATABASE_URL
value: dbaas903.hyperp-dbaas.cloud.ibm.com:30180
image: jsgette/cloud-example-app:0.2.0
ports:
- containerPort: 8080
name: server
imagePullPolicy: Always
tty: true
resources:
requests:
memory: 512Mi
cpu: 400m
limits:
memory: 512Mi
cpu: 400m