worker.values.schema.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {
  2. "$schema": "http://json-schema.org/schema#",
  3. "type": "object",
  4. "properties": {
  5. "replicaCount": {
  6. "type": "integer",
  7. "minimum": 1,
  8. "default": 1
  9. },
  10. "container": {
  11. "type": "object",
  12. "properties": {
  13. "port": {
  14. "type": "integer",
  15. "default": 80
  16. },
  17. "command": {
  18. "type": "string"
  19. },
  20. "env": {
  21. "type": "object",
  22. "properties": {
  23. "normal": {
  24. "type": "object",
  25. "additionalProperties": {
  26. "type": "string"
  27. }
  28. }
  29. }
  30. }
  31. }
  32. },
  33. "autoscaling": {
  34. "type": "object",
  35. "properties": {
  36. "enabled": {
  37. "type": "boolean",
  38. "default": false
  39. },
  40. "minReplicas": {
  41. "type": "integer",
  42. "default": 1
  43. },
  44. "maxReplicas": {
  45. "type": "integer",
  46. "default": 10
  47. },
  48. "targetCPUUtilizationPercentage": {
  49. "type": "integer",
  50. "default": 50
  51. },
  52. "targetMemoryUtilizationPercentage": {
  53. "type": "integer",
  54. "default": 50
  55. }
  56. }
  57. },
  58. "health": {
  59. "type": "object",
  60. "properties": {
  61. "enabled": {
  62. "type": "boolean",
  63. "default": false
  64. },
  65. "command": {
  66. "type": "string",
  67. "default": "ls -l"
  68. },
  69. "periodSeconds": {
  70. "type": "integer",
  71. "default": 5
  72. },
  73. "failureThreshold": {
  74. "type": "integer",
  75. "default": 3
  76. },
  77. "readinessProbe": {
  78. "type": "object",
  79. "properties": {
  80. "enabled": {
  81. "type": "boolean",
  82. "default": false
  83. },
  84. "command": {
  85. "type": "string",
  86. "default": "ls -l"
  87. },
  88. "periodSeconds": {
  89. "type": "integer",
  90. "default": 5
  91. }
  92. }
  93. },
  94. "startupProbe": {
  95. "type": "object",
  96. "properties": {
  97. "enabled": {
  98. "type": "boolean",
  99. "default": false
  100. },
  101. "command": {
  102. "type": "string",
  103. "default": "ls -l"
  104. },
  105. "failureThreshold": {
  106. "type": "integer",
  107. "default": 3
  108. },
  109. "periodSeconds": {
  110. "type": "integer",
  111. "default": 5
  112. }
  113. }
  114. }
  115. }
  116. },
  117. "resources": {
  118. "type": "object",
  119. "properties": {
  120. "requests": {
  121. "type": "object",
  122. "properties": {
  123. "cpu": {
  124. "type": "string",
  125. "pattern": "^\\d+(m){0,1}$"
  126. },
  127. "memory": {
  128. "type": "string",
  129. "pattern": "^\\d+(Ki|Mi|Gi)$"
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }