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.

133 lines
3.4 KiB

  1. {
  2. "kind": "List",
  3. "apiVersion": "v1",
  4. "items": [
  5. {
  6. "kind": "Service",
  7. "apiVersion": "v1",
  8. "metadata": {
  9. "name": "deploy-heketi",
  10. "labels": {
  11. "glusterfs": "heketi-service",
  12. "deploy-heketi": "support"
  13. },
  14. "annotations": {
  15. "description": "Exposes Heketi Service"
  16. }
  17. },
  18. "spec": {
  19. "selector": {
  20. "name": "deploy-heketi"
  21. },
  22. "ports": [
  23. {
  24. "name": "deploy-heketi",
  25. "port": 8080,
  26. "targetPort": 8080
  27. }
  28. ]
  29. }
  30. },
  31. {
  32. "kind": "Deployment",
  33. "apiVersion": "apps/v1",
  34. "metadata": {
  35. "name": "deploy-heketi",
  36. "labels": {
  37. "glusterfs": "heketi-deployment",
  38. "deploy-heketi": "deployment"
  39. },
  40. "annotations": {
  41. "description": "Defines how to deploy Heketi"
  42. }
  43. },
  44. "spec": {
  45. "replicas": 1,
  46. "template": {
  47. "metadata": {
  48. "name": "deploy-heketi",
  49. "labels": {
  50. "name": "deploy-heketi",
  51. "glusterfs": "heketi-pod",
  52. "deploy-heketi": "pod"
  53. }
  54. },
  55. "spec": {
  56. "serviceAccountName": "heketi-service-account",
  57. "containers": [
  58. {
  59. "image": "heketi/heketi:9",
  60. "imagePullPolicy": "Always",
  61. "name": "deploy-heketi",
  62. "env": [
  63. {
  64. "name": "HEKETI_EXECUTOR",
  65. "value": "kubernetes"
  66. },
  67. {
  68. "name": "HEKETI_DB_PATH",
  69. "value": "/var/lib/heketi/heketi.db"
  70. },
  71. {
  72. "name": "HEKETI_FSTAB",
  73. "value": "/var/lib/heketi/fstab"
  74. },
  75. {
  76. "name": "HEKETI_SNAPSHOT_LIMIT",
  77. "value": "14"
  78. },
  79. {
  80. "name": "HEKETI_KUBE_GLUSTER_DAEMONSET",
  81. "value": "y"
  82. }
  83. ],
  84. "ports": [
  85. {
  86. "containerPort": 8080
  87. }
  88. ],
  89. "volumeMounts": [
  90. {
  91. "name": "db",
  92. "mountPath": "/var/lib/heketi"
  93. },
  94. {
  95. "name": "config",
  96. "mountPath": "/etc/heketi"
  97. }
  98. ],
  99. "readinessProbe": {
  100. "timeoutSeconds": 3,
  101. "initialDelaySeconds": 3,
  102. "httpGet": {
  103. "path": "/hello",
  104. "port": 8080
  105. }
  106. },
  107. "livenessProbe": {
  108. "timeoutSeconds": 3,
  109. "initialDelaySeconds": 10,
  110. "httpGet": {
  111. "path": "/hello",
  112. "port": 8080
  113. }
  114. }
  115. }
  116. ],
  117. "volumes": [
  118. {
  119. "name": "db"
  120. },
  121. {
  122. "name": "config",
  123. "secret": {
  124. "secretName": "heketi-config-secret"
  125. }
  126. }
  127. ]
  128. }
  129. }
  130. }
  131. }
  132. ]
  133. }