forked from dockersamples/wordsmith
-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yml
61 lines (57 loc) · 954 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
apiVersion: apps/v1
kind: Deployment
metadata:
name: db
labels:
app: db
spec:
template:
metadata:
labels:
app: db
spec:
containers:
- name: db
image: 321455566/db:master
ports:
- containerPort: 5432
name: db
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: words
labels:
app: words
spec:
replicas: 5
template:
metadata:
labels:
app: words
spec:
containers:
- name: words
image: 321455566/words:master
ports:
- containerPort: 8080
name: words
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
labels:
app: web
spec:
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: 321455566/web:${{CF_BRANCH_TAG_NORMALIZED}}-${{CF_SHORT_REVISION}}
ports:
- containerPort: 80
name: web