-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdeployment.yaml
52 lines (52 loc) · 1013 Bytes
/
deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: mockingbird
spec:
replicas: 1
selector:
matchLabels:
app: mockingbird
template:
metadata:
labels:
app: mockingbird
spec:
containers:
- name: mockingbird
image: ozkeisar/mockingbird:latest
ports:
- containerPort: 1511
- containerPort: 3000
- containerPort: 3001
- containerPort: 3050
imagePullPolicy: Always
env:
- name: NODE_ENV
value: "production"
---
apiVersion: v1
kind: Service
metadata:
name: mockingbird-service
spec:
selector:
app: mockingbird
ports:
- name: api-port
protocol: TCP
port: 1511
targetPort: 1511
- name: web-port-3000
protocol: TCP
port: 3000
targetPort: 3000
- name: web-port-3001
protocol: TCP
port: 3001
targetPort: 3001
- name: web-port-3050
protocol: TCP
port: 3050
targetPort: 3050
type: LoadBalancer