generated from ibm-developer-skills-network/aolwx-devops-capstone-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
43 lines (42 loc) · 972 Bytes
/
deployment.yaml
File metadata and controls
43 lines (42 loc) · 972 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: accounts
name: accounts
spec:
replicas: 3
selector:
matchLabels:
app: accounts
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: accounts
spec:
containers:
- image: us.icr.io/sn-labs-imranullahkh/accounts:1
name: accounts
resources: {}
env:
- name: DATABASE_HOST
value: postgresql
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
name: postgresql
key: database-name
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: postgresql
key: database-password
- name: DATABASE_USER
valueFrom:
secretKeyRef:
name: postgresql
key: database-user
status: {}