2018-07-25 14:46:12 +00:00
|
|
|
{
|
|
|
|
"kind": "DaemonSet",
|
2019-09-10 19:06:55 +00:00
|
|
|
"apiVersion": "apps/v1",
|
2018-07-25 14:46:12 +00:00
|
|
|
"metadata": {
|
|
|
|
"name": "glusterfs",
|
|
|
|
"labels": {
|
|
|
|
"glusterfs": "deployment"
|
|
|
|
},
|
|
|
|
"annotations": {
|
|
|
|
"description": "GlusterFS Daemon Set",
|
|
|
|
"tags": "glusterfs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"spec": {
|
2020-03-16 10:32:36 +00:00
|
|
|
"selector": {
|
|
|
|
"matchLabels": {
|
|
|
|
"glusterfs-node": "daemonset"
|
|
|
|
}
|
|
|
|
},
|
2018-07-25 14:46:12 +00:00
|
|
|
"template": {
|
|
|
|
"metadata": {
|
|
|
|
"name": "glusterfs",
|
|
|
|
"labels": {
|
|
|
|
"glusterfs-node": "daemonset"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"spec": {
|
|
|
|
"nodeSelector": {
|
|
|
|
"storagenode" : "glusterfs"
|
|
|
|
},
|
|
|
|
"hostNetwork": true,
|
|
|
|
"containers": [
|
|
|
|
{
|
|
|
|
"image": "gluster/gluster-centos:gluster4u0_centos7",
|
2018-09-05 14:03:32 +00:00
|
|
|
"imagePullPolicy": "IfNotPresent",
|
2018-07-25 14:46:12 +00:00
|
|
|
"name": "glusterfs",
|
|
|
|
"volumeMounts": [
|
|
|
|
{
|
|
|
|
"name": "glusterfs-heketi",
|
|
|
|
"mountPath": "/var/lib/heketi"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-run",
|
|
|
|
"mountPath": "/run"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-lvm",
|
|
|
|
"mountPath": "/run/lvm"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-etc",
|
|
|
|
"mountPath": "/etc/glusterfs"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-logs",
|
|
|
|
"mountPath": "/var/log/glusterfs"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-config",
|
|
|
|
"mountPath": "/var/lib/glusterd"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-dev",
|
|
|
|
"mountPath": "/dev"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-cgroup",
|
|
|
|
"mountPath": "/sys/fs/cgroup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"securityContext": {
|
|
|
|
"capabilities": {},
|
|
|
|
"privileged": true
|
|
|
|
},
|
|
|
|
"readinessProbe": {
|
2021-12-23 08:32:37 +00:00
|
|
|
"timeoutSeconds": {{ glusterfs_daemonset.readiness_probe.timeout_seconds }},
|
|
|
|
"initialDelaySeconds": {{ glusterfs_daemonset.readiness_probe.initial_delay_seconds }},
|
2018-07-25 14:46:12 +00:00
|
|
|
"exec": {
|
|
|
|
"command": [
|
|
|
|
"/bin/bash",
|
|
|
|
"-c",
|
|
|
|
"systemctl status glusterd.service"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"livenessProbe": {
|
2021-12-23 08:32:37 +00:00
|
|
|
"timeoutSeconds": {{ glusterfs_daemonset.liveness_probe.timeout_seconds }},
|
|
|
|
"initialDelaySeconds": {{ glusterfs_daemonset.liveness_probe.initial_delay_seconds }},
|
2018-07-25 14:46:12 +00:00
|
|
|
"exec": {
|
|
|
|
"command": [
|
|
|
|
"/bin/bash",
|
|
|
|
"-c",
|
|
|
|
"systemctl status glusterd.service"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"volumes": [
|
|
|
|
{
|
|
|
|
"name": "glusterfs-heketi",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/var/lib/heketi"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-run"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-lvm",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/run/lvm"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-etc",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/etc/glusterfs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-logs",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/var/log/glusterfs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-config",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/var/lib/glusterd"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-dev",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/dev"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "glusterfs-cgroup",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/sys/fs/cgroup"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|