-
Notifications
You must be signed in to change notification settings - Fork 1
/
k8_config.yaml
73 lines (73 loc) · 1.35 KB
/
k8_config.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apiVersion: apps/v1
kind: Deployment
metadata:
name: master-deployment
labels:
app: master-app
spec:
replicas: 2
selector:
matchLabels:
app: master-app
template:
metadata:
labels:
app: master-app
spec:
containers:
- name: master-app
image: mapreduceimage.azurecr.io/mapreduce/master_image
command: ['/code/src/master/master']
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: worker-deployment
labels:
app: worker-app
spec:
replicas: 2
selector:
matchLabels:
app: worker-app
template:
metadata:
labels:
app: worker-app
spec:
containers:
- name: worker-app
image: mapreduceimage.azurecr.io/mapreduce/worker_image
command: ['/code/src/worker/worker']
---
apiVersion: v1
kind: Pod
metadata:
name: web
labels:
app: web
spec:
containers:
- name: web
image: mapreduceimage.azurecr.io/mapreduce/master_image
command: ['/code/src/webclient/webclient']
ports:
- containerPort: 5000
name: web
---
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/azure-load-balancer-resource-group: mapreduce_group
name: web
spec:
loadBalancerIP: 20.120.26.81
type: LoadBalancer
selector:
app: web
ports:
- protocol: TCP
port: 5000
targetPort: 5000
---