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.

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