-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yml
More file actions
65 lines (65 loc) · 1.42 KB
/
deployment.yml
File metadata and controls
65 lines (65 loc) · 1.42 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: apps/v1
kind: Deployment
metadata:
name: biomark-booking-api
namespace: biomark-production
spec:
selector:
matchLabels:
app: booking-api
replicas: 1
template:
metadata:
labels:
app: booking-api
spec:
containers:
- name: booking-api
image: registry.gitlab.com/biomark/biomark-booking-api:MASTER_585577756
args: ["bundle exec rails db:migrate && bundle exec puma"]
imagePullPolicy: Always
envFrom:
- configMapRef:
name: biomark-booking-config
imagePullSecrets:
- name: regcred
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: biomark-booking-sidekiq
namespace: biomark-production
spec:
selector:
matchLabels:
app: booking-sidekiq
replicas: 1
template:
metadata:
labels:
app: booking-sidekiq
spec:
containers:
- name: booking-sidekiq
image: registry.gitlab.com/biomark/biomark-booking-api:MASTER_585577756
args: ["bundle exec sidekiq"]
imagePullPolicy: Always
envFrom:
- configMapRef:
name: biomark-booking-config
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: biomark-booking-service
namespace: biomark-production
spec:
ports:
- port: 3004
targetPort: 3002
protocol: TCP
type: NodePort
selector:
app: booking-api