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. "resources": {
  34. "type": "object",
  35. "properties": {
  36. "requests": {
  37. "type": "object",
  38. "properties": {
  39. "cpu": {
  40. "type": "string",
  41. "pattern": "^\\d+(m){0,1}$"
  42. },
  43. "memory": {
  44. "type": "string",
  45. "pattern": "^\\d+(Ki|Mi|Gi)$"
  46. }
  47. }
  48. }
  49. }
  50. },
  51. "autoscaling": {
  52. "type": "object",
  53. "properties": {
  54. "enabled": {
  55. "type": "boolean",
  56. "default": false
  57. },
  58. "minReplicas": {
  59. "type": "integer",
  60. "default": 1
  61. },
  62. "maxReplicas": {
  63. "type": "integer",
  64. "default": 10
  65. },
  66. "targetCPUUtilizationPercentage": {
  67. "type": "integer",
  68. "default": 50
  69. },
  70. "targetMemoryUtilizationPercentage": {
  71. "type": "integer",
  72. "default": 50
  73. }
  74. }
  75. },
  76. "health": {
  77. "type": "object",
  78. "properties": {
  79. "enabled": {
  80. "type": "boolean",
  81. "default": false
  82. },
  83. "command": {
  84. "type": "string",
  85. "default": "ls -l"
  86. },
  87. "periodSeconds": {
  88. "type": "integer",
  89. "default": 5
  90. },
  91. "failureThreshold": {
  92. "type": "integer",
  93. "default": 3
  94. },
  95. "readinessProbe": {
  96. "type": "object",
  97. "properties": {
  98. "enabled": {
  99. "type": "boolean",
  100. "default": false
  101. },
  102. "command": {
  103. "type": "string",
  104. "default": "ls -l"
  105. },
  106. "periodSeconds": {
  107. "type": "integer",
  108. "default": 5
  109. }
  110. }
  111. },
  112. "startupProbe": {
  113. "type": "object",
  114. "properties": {
  115. "enabled": {
  116. "type": "boolean",
  117. "default": false
  118. },
  119. "command": {
  120. "type": "string",
  121. "default": "ls -l"
  122. },
  123. "failureThreshold": {
  124. "type": "integer",
  125. "default": 3
  126. },
  127. "periodSeconds": {
  128. "type": "integer",
  129. "default": 5
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }