You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
5.2 KiB

  1. {
  2. "kind": "DaemonSet",
  3. "apiVersion": "apps/v1",
  4. "metadata": {
  5. "name": "glusterfs",
  6. "labels": {
  7. "glusterfs": "deployment"
  8. },
  9. "annotations": {
  10. "description": "GlusterFS Daemon Set",
  11. "tags": "glusterfs"
  12. }
  13. },
  14. "spec": {
  15. "selector": {
  16. "matchLabels": {
  17. "glusterfs-node": "daemonset"
  18. }
  19. },
  20. "template": {
  21. "metadata": {
  22. "name": "glusterfs",
  23. "labels": {
  24. "glusterfs-node": "daemonset"
  25. }
  26. },
  27. "spec": {
  28. "nodeSelector": {
  29. "storagenode" : "glusterfs"
  30. },
  31. "hostNetwork": true,
  32. "containers": [
  33. {
  34. "image": "gluster/gluster-centos:gluster4u0_centos7",
  35. "imagePullPolicy": "IfNotPresent",
  36. "name": "glusterfs",
  37. "volumeMounts": [
  38. {
  39. "name": "glusterfs-heketi",
  40. "mountPath": "/var/lib/heketi"
  41. },
  42. {
  43. "name": "glusterfs-run",
  44. "mountPath": "/run"
  45. },
  46. {
  47. "name": "glusterfs-lvm",
  48. "mountPath": "/run/lvm"
  49. },
  50. {
  51. "name": "glusterfs-etc",
  52. "mountPath": "/etc/glusterfs"
  53. },
  54. {
  55. "name": "glusterfs-logs",
  56. "mountPath": "/var/log/glusterfs"
  57. },
  58. {
  59. "name": "glusterfs-config",
  60. "mountPath": "/var/lib/glusterd"
  61. },
  62. {
  63. "name": "glusterfs-dev",
  64. "mountPath": "/dev"
  65. },
  66. {
  67. "name": "glusterfs-cgroup",
  68. "mountPath": "/sys/fs/cgroup"
  69. }
  70. ],
  71. "securityContext": {
  72. "capabilities": {},
  73. "privileged": true
  74. },
  75. "readinessProbe": {
  76. "timeoutSeconds": 3,
  77. "initialDelaySeconds": 3,
  78. "exec": {
  79. "command": [
  80. "/bin/bash",
  81. "-c",
  82. "systemctl status glusterd.service"
  83. ]
  84. }
  85. },
  86. "livenessProbe": {
  87. "timeoutSeconds": 3,
  88. "initialDelaySeconds": 10,
  89. "exec": {
  90. "command": [
  91. "/bin/bash",
  92. "-c",
  93. "systemctl status glusterd.service"
  94. ]
  95. }
  96. }
  97. }
  98. ],
  99. "volumes": [
  100. {
  101. "name": "glusterfs-heketi",
  102. "hostPath": {
  103. "path": "/var/lib/heketi"
  104. }
  105. },
  106. {
  107. "name": "glusterfs-run"
  108. },
  109. {
  110. "name": "glusterfs-lvm",
  111. "hostPath": {
  112. "path": "/run/lvm"
  113. }
  114. },
  115. {
  116. "name": "glusterfs-etc",
  117. "hostPath": {
  118. "path": "/etc/glusterfs"
  119. }
  120. },
  121. {
  122. "name": "glusterfs-logs",
  123. "hostPath": {
  124. "path": "/var/log/glusterfs"
  125. }
  126. },
  127. {
  128. "name": "glusterfs-config",
  129. "hostPath": {
  130. "path": "/var/lib/glusterd"
  131. }
  132. },
  133. {
  134. "name": "glusterfs-dev",
  135. "hostPath": {
  136. "path": "/dev"
  137. }
  138. },
  139. {
  140. "name": "glusterfs-cgroup",
  141. "hostPath": {
  142. "path": "/sys/fs/cgroup"
  143. }
  144. }
  145. ]
  146. }
  147. }
  148. }
  149. }