File tree 4 files changed +111
-0
lines changed
4 files changed +111
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : hadoop-deployment
5
+ labels :
6
+ app : hadoop
7
+ spec :
8
+ replicas : 3
9
+ selector :
10
+ matchLabels :
11
+ app : hadoop
12
+
13
+ template :
14
+ metadata :
15
+ labels :
16
+ app : hadoop
17
+ spec :
18
+ volumes :
19
+ - name : hadoop-pv-storage
20
+ persistentVolumeClaim :
21
+ claimName : hadoop-pv-claim
22
+ containers :
23
+ - name : hadoop
24
+ image : hadoop-3.2.2:0.1
25
+ ports :
26
+ - containerPort : 10000
27
+ - containerPort : 9870
28
+ - containerPort : 8088
29
+ - containerPort : 10001
30
+ - containerPort : 9000
31
+ - containerPort : 6379
32
+ - containerPort : 19888
33
+ volumeMounts :
34
+ - mountPath : " /output"
35
+ name : hadoop-pv-storage
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : PersistentVolume
3
+ metadata :
4
+ name : hadoop-pv-volume
5
+ labels :
6
+ type : local
7
+ spec :
8
+ storageClassName : manual
9
+ capacity :
10
+ storage : 20Gi
11
+ accessModes :
12
+ - ReadWriteMany
13
+ hostPath :
14
+ path : " /mnt/c/Users/supre/backend-2022/output"
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : PersistentVolumeClaim
3
+ metadata :
4
+ name : hadoop-pv-claim
5
+ spec :
6
+ storageClassName : manual
7
+ accessModes :
8
+ - ReadWriteMany
9
+ resources :
10
+ requests :
11
+ storage : 5Gi
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service
3
+ metadata :
4
+ name : hadoop-service
5
+ spec :
6
+ type : LoadBalancer
7
+ selector :
8
+ app.kubernetes.io/name : hadoop-deployment
9
+ # type: LoadBalancer
10
+ ports :
11
+ - name : port1
12
+ port : 10000
13
+ targetPort : 10000
14
+ nodePort : 30007
15
+ protocol : TCP
16
+
17
+ - name : port2
18
+ port : 9870
19
+ targetPort : 9870
20
+ nodePort : 30008
21
+ protocol : TCP
22
+
23
+ - name : port3
24
+ port : 8088
25
+ targetPort : 8088
26
+ nodePort : 30009
27
+ protocol : TCP
28
+
29
+ - name : port4
30
+ port : 10001
31
+ targetPort : 10001
32
+ nodePort : 30010
33
+ protocol : TCP
34
+
35
+ - name : port5
36
+ port : 9000
37
+ targetPort : 9000
38
+ nodePort : 30011
39
+ protocol : TCP
40
+
41
+ - name : port6
42
+ port : 6379
43
+ targetPort : 6379
44
+ nodePort : 30012
45
+ protocol : TCP
46
+
47
+ - name : port7
48
+ port : 19888
49
+ targetPort : 19888
50
+ nodePort : 30013
51
+ protocol : TCP
You can’t perform that action at this time.
0 commit comments