forked from kpandyauniva/Cluster-Setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgluster.yaml
More file actions
69 lines (69 loc) · 1.84 KB
/
Copy pathgluster.yaml
File metadata and controls
69 lines (69 loc) · 1.84 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
66
67
68
69
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: gluster
labels:
app: gluster
spec:
template:
metadata:
labels:
app: gluster-node
spec:
hostNetwork: true
containers:
- name: gluster-node
image: gluster/gluster-centos
securityContext:
privileged: true
ports:
- containerPort: 22
name: ssh
- name: gluster
containerPort: 24007
protocol: TCP
- name: brick1
containerPort: 49152
protocol: TCP
- containerPort: 38465
name: gnfs1
protocol: TCP
- containerPort: 38466
protocol: TCP
name: gnfs2
- containerPort: 38467
protocol: TCP
name: gnfs3
- containerPort: 38468
protocol: TCP
name: gnfs4
- containerPort: 38469
protocol: TCP
name: gnfs5
- containerPort: 111
protocol: TCP
name: rpcbind-tcp
- containerPort: 111
protocol: UDP
name: rpcbind
- containerPort: 2049
protocol: TCP
name: nfs
volumeMounts:
- mountPath: /mnt/brick1
name: gluster
- mountPath: /sys/fs/cgroup
readOnly: true
name: cgroup
- mountPath: /var/lib/glusterd
name: statedata
volumes:
- name: gluster
hostPath:
path: /mnt/data
- name: cgroup
hostPath:
path: /sys/fs/cgroup
- name: statedata
hostPath:
path: /var/lib/glusterd