web.values.schema.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. "ingress": {
  11. "type": "object",
  12. "properties": {
  13. "enabled": {
  14. "type": "boolean",
  15. "default": true
  16. },
  17. "hosts": {
  18. "type": "array",
  19. "items": {
  20. "type": "string"
  21. }
  22. },
  23. "porter_hosts": {
  24. "type": "array",
  25. "items": {
  26. "type": "string"
  27. }
  28. },
  29. "provider": {
  30. "type": "string"
  31. },
  32. "custom_domain": {
  33. "type": "boolean",
  34. "default": false
  35. },
  36. "custom_paths": {
  37. "type": "string"
  38. },
  39. "rewriteCustomPathsEnabled": {
  40. "type": "boolean",
  41. "default": true
  42. },
  43. "annotations": {
  44. "type": "array",
  45. "items": {
  46. "type": "string"
  47. }
  48. },
  49. "wildcard": {
  50. "type": "boolean",
  51. "default": false
  52. },
  53. "tls": {
  54. "type": "boolean",
  55. "default": true
  56. },
  57. "useDefaultIngressTLSSecret": {
  58. "type": "boolean",
  59. "default": false
  60. }
  61. }
  62. },
  63. "container": {
  64. "type": "object",
  65. "properties": {
  66. "port": {
  67. "type": "integer",
  68. "default": 80
  69. },
  70. "command": {
  71. "type": "string"
  72. },
  73. "args": {
  74. "type": "array",
  75. "items": {
  76. "type": "string"
  77. }
  78. },
  79. "env": {
  80. "type": "object",
  81. "properties": {
  82. "normal": {
  83. "type": "object",
  84. "additionalProperties": {
  85. "type": "string"
  86. }
  87. }
  88. }
  89. }
  90. }
  91. },
  92. "resources": {
  93. "type": "object",
  94. "properties": {
  95. "requests": {
  96. "type": "object",
  97. "properties": {
  98. "cpu": {
  99. "type": "string",
  100. "pattern": "^\\d+(m){0,1}$"
  101. },
  102. "memory": {
  103. "type": "string",
  104. "pattern": "^\\d+(Ki|Mi|Gi)$"
  105. }
  106. }
  107. }
  108. }
  109. },
  110. "autoscaling": {
  111. "type": "object",
  112. "properties": {
  113. "enabled": {
  114. "type": "boolean",
  115. "default": false
  116. },
  117. "minReplicas": {
  118. "type": "integer",
  119. "default": 1
  120. },
  121. "maxReplicas": {
  122. "type": "integer",
  123. "default": 10
  124. },
  125. "targetCPUUtilizationPercentage": {
  126. "type": "integer",
  127. "default": 50
  128. },
  129. "targetMemoryUtilizationPercentage": {
  130. "type": "integer",
  131. "default": 50
  132. }
  133. }
  134. },
  135. "health": {
  136. "type": "object",
  137. "properties": {
  138. "livenessProbe": {
  139. "type": "object",
  140. "properties": {
  141. "enabled": {
  142. "type": "boolean",
  143. "default": false
  144. },
  145. "path": {
  146. "type": "string",
  147. "default": "/livez"
  148. },
  149. "scheme": {
  150. "type": "string",
  151. "default": "HTTP"
  152. },
  153. "initialDelaySeconds": {
  154. "type": "integer",
  155. "default": 0
  156. },
  157. "periodSeconds": {
  158. "type": "integer",
  159. "default": 5
  160. },
  161. "timeoutSeconds": {
  162. "type": "integer",
  163. "default": 1
  164. },
  165. "successThreshold": {
  166. "type": "integer",
  167. "default": 1
  168. },
  169. "failureThreshold": {
  170. "type": "integer",
  171. "default": 3
  172. },
  173. "auth": {
  174. "type": "object",
  175. "properties": {
  176. "enabled": {
  177. "type": "boolean",
  178. "default": false
  179. },
  180. "username": {
  181. "type": "string"
  182. },
  183. "password": {
  184. "type": "string"
  185. }
  186. }
  187. }
  188. }
  189. },
  190. "readinessProbe": {
  191. "type": "object",
  192. "properties": {
  193. "enabled": {
  194. "type": "boolean",
  195. "default": false
  196. },
  197. "path": {
  198. "type": "string",
  199. "default": "/readyz"
  200. },
  201. "scheme": {
  202. "type": "string",
  203. "default": "HTTP"
  204. },
  205. "initialDelaySeconds": {
  206. "type": "integer",
  207. "default": 0
  208. },
  209. "periodSeconds": {
  210. "type": "integer",
  211. "default": 5
  212. },
  213. "timeoutSeconds": {
  214. "type": "integer",
  215. "default": 1
  216. },
  217. "successThreshold": {
  218. "type": "integer",
  219. "default": 1
  220. },
  221. "failureThreshold": {
  222. "type": "integer",
  223. "default": 3
  224. },
  225. "auth": {
  226. "type": "object",
  227. "properties": {
  228. "enabled": {
  229. "type": "boolean",
  230. "default": false
  231. },
  232. "username": {
  233. "type": "string"
  234. },
  235. "password": {
  236. "type": "string"
  237. }
  238. }
  239. }
  240. }
  241. },
  242. "startupProbe": {
  243. "type": "object",
  244. "properties": {
  245. "enabled": {
  246. "type": "boolean",
  247. "default": false
  248. },
  249. "path": {
  250. "type": "string",
  251. "default": "/startupz"
  252. },
  253. "scheme": {
  254. "type": "string",
  255. "default": "HTTP"
  256. },
  257. "failureThreshold": {
  258. "type": "integer",
  259. "default": 3
  260. },
  261. "periodSeconds": {
  262. "type": "integer",
  263. "default": 5
  264. },
  265. "timeoutSeconds": {
  266. "type": "integer",
  267. "default": 1
  268. },
  269. "auth": {
  270. "type": "object",
  271. "properties": {
  272. "enabled": {
  273. "type": "boolean",
  274. "default": false
  275. },
  276. "username": {
  277. "type": "string"
  278. },
  279. "password": {
  280. "type": "string"
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. }
  288. }
  289. }