-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgluster-ds_rh.yml
50 lines (49 loc) · 1.14 KB
/
gluster-ds_rh.yml
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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
provider: openshift
component: gluster
name: "gluster"
spec:
selector:
matchLabels:
provider: openshift
component: gluster
updateStrategy:
type: RollingUpdate
rollingUpdate:
minReadySeconds: 600
template:
metadata:
name: gluster
labels:
provider: openshift
component: gluster
spec:
containers:
- name: gluster
image: rhgs3/rhgs-server-rhel7:latest
ports:
- containerPort: 80
name: web
volumeMounts:
- name: brickpath
mountPath: "/mnt/brick1"
- name: gluster-varlib
mountPath: "/var/lib/glusterd"
securityContext:
privileged: true
hostDirVolumePlugin: true
hostNetwork: true
nodeSelector:
app: gluster
serviceAccount: gluster
serviceAccountName: gluster
volumes:
- name: brickpath
hostPath:
path: "/mnt/brick1"
- name: gluster-varlib
hostPath:
path: "/mnt/glusterd-varlib"