questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Container Entrypoint"
  5. description: "Configuration of the executable that will be run when the container is started"
  6. - name: "Container Environment Variables"
  7. description: "Set the environment that will be visible to the container"
  8. - name: "Networking"
  9. description: "Configure networking for container"
  10. - name: "Storage"
  11. description: "Persist and share data that is separate from the lifecycle of the container"
  12. - name: "Health Check"
  13. description: "Define mechanism to periodically probe the container to ensure it's functioning as desired"
  14. - name: "Workload Details"
  15. description: "Configure how workload should be deployed"
  16. - name: "Scaling/Upgrade Policy"
  17. description: "Configure how pods are replaced when configuration is upgraded"
  18. - name: "Restart Policy"
  19. description: "Configure when pod should be restarted in case of failure"
  20. - name: "Resource Reservation"
  21. description: "Specify resources to be allocated to workload"
  22. questions:
  23. # Workload type
  24. - variable: workloadType
  25. description: "Please specify type of workload to deploy"
  26. label: "Workload Type"
  27. group: "Workload Details"
  28. schema:
  29. type: string
  30. default: "Deployment"
  31. required: true
  32. enum:
  33. - value: "Deployment"
  34. description: "Deploy a Deployment workload"
  35. - value: "Job"
  36. description: "Deploy job workload"
  37. - value: "CronJob"
  38. description: "Deploy cronjob workload"
  39. # Cronjob schedule
  40. - variable: cronSchedule
  41. label: "Cron Schedule"
  42. group: "Workload Details"
  43. schema:
  44. type: cron
  45. show_if: [["workloadType", "=", "CronJob"]]
  46. default:
  47. minute: "5"
  48. # Image related
  49. - variable: image
  50. description: "Docker Image Details"
  51. group: "Container Images"
  52. schema:
  53. type: dict
  54. required: true
  55. attrs:
  56. - variable: repository
  57. description: "Docker image repository"
  58. label: "Image repository"
  59. schema:
  60. type: string
  61. required: true
  62. - variable: tag
  63. description: "Tag to use for specified image"
  64. label: "Image Tag"
  65. schema:
  66. type: string
  67. default: "latest"
  68. - variable: pullPolicy
  69. description: "Docker Image Pull Policy"
  70. label: "Image Pull Policy"
  71. schema:
  72. type: string
  73. default: "IfNotPresent"
  74. enum:
  75. - value: "IfNotPresent"
  76. description: "Only pull image if not present on host"
  77. - value: "Always"
  78. description: "Always pull image even if present on host"
  79. - value: "Never"
  80. description: "Never pull image even if it's not present on host"
  81. # Update strategy
  82. - variable: updateStrategy
  83. description: "Upgrade Policy"
  84. label: "Update Strategy"
  85. group: "Scaling/Upgrade Policy"
  86. schema:
  87. type: string
  88. show_if: [["workloadType", "=", "Deployment"]]
  89. default: "RollingUpdate"
  90. enum:
  91. - value: "RollingUpdate"
  92. description: "Create new pods and then kill old ones"
  93. - value: "Recreate"
  94. description: "Kill existing pods before creating new ones"
  95. # Restart Policy
  96. - variable: restartPolicy
  97. description: "Restart Policy for workload"
  98. label: "Restart Policy"
  99. schema:
  100. type: string
  101. show_if: [["workloadType", "=", "Deployment"]]
  102. default: "Always"
  103. enum:
  104. - value: "Always"
  105. description: "Always restart containers in a pod if they exit"
  106. - value: "OnFailure"
  107. description: "Only restart containers if they exit with a failure"
  108. - value: "Never"
  109. description: "Never restart containers if they exit"
  110. - variable: jobRestartPolicy
  111. description: "Restart Policy for workload"
  112. label: "Restart Policy"
  113. schema:
  114. type: string
  115. default: "OnFailure"
  116. show_if: [["workloadType", "!=", "Deployment"]]
  117. enum:
  118. - value: "OnFailure"
  119. description: "Only restart job if it fails"
  120. - value: "Never"
  121. description: "Never restart job even if it fails"
  122. # Configurable CMD / Entrypoint / Environment Variables
  123. - variable: containerCommand
  124. description: "Commands to execute inside container overriding image CMD default"
  125. label: "Container CMD"
  126. group: "Container Entrypoint"
  127. schema:
  128. type: list
  129. items:
  130. - variable: command
  131. description: "Container Command"
  132. label: "Command"
  133. schema:
  134. type: string
  135. - variable: containerArgs
  136. description: "Specify arguments for container command"
  137. label: "Container Args"
  138. group: "Container Entrypoint"
  139. schema:
  140. type: list
  141. items:
  142. - variable: arg
  143. description: "Container Arg"
  144. label: "Arg"
  145. schema:
  146. type: string
  147. - variable: containerEnvironmentVariables
  148. description: "Container Environment Variables"
  149. label: "Container Environment Variables"
  150. group: "Container Environment Variables"
  151. schema:
  152. type: list
  153. items:
  154. - variable: environmentVariable
  155. description: "Container Environment Variable"
  156. label: "Container Environment Variable"
  157. schema:
  158. type: dict
  159. attrs:
  160. - variable: name
  161. description: "Environment Variable Name"
  162. label: "Environment Variable Name"
  163. schema:
  164. type: string
  165. required: true
  166. - variable: value
  167. description: "Environment Variable Value"
  168. label: "Environment Variable Value"
  169. schema:
  170. type: string
  171. required: true
  172. # Networking options
  173. - variable: externalInterfaces
  174. description: "Add External Interfaces"
  175. label: "Add external Interfaces"
  176. group: "Networking"
  177. schema:
  178. type: list
  179. items:
  180. - variable: interfaceConfiguration
  181. description: "Interface Configuration"
  182. label: "Interface Configuration"
  183. schema:
  184. type: dict
  185. $ref:
  186. - "normalize/interfaceConfiguration"
  187. attrs:
  188. - variable: hostInterface
  189. description: "Please specify host interface"
  190. label: "Host Interface"
  191. schema:
  192. type: string
  193. required: true
  194. $ref:
  195. - "definitions/interface"
  196. - variable: ipam
  197. description: "Define how IP Address will be managed"
  198. label: "IP Address Management"
  199. schema:
  200. type: dict
  201. required: true
  202. attrs:
  203. - variable: type
  204. description: "Specify type for IPAM"
  205. label: "IPAM Type"
  206. schema:
  207. type: string
  208. required: true
  209. enum:
  210. - value: "dhcp"
  211. description: "Use DHCP"
  212. - value: "static"
  213. description: "Use static IP"
  214. show_subquestions_if: "static"
  215. subquestions:
  216. - variable: staticIPConfigurations
  217. label: "Static IP Addresses"
  218. schema:
  219. type: list
  220. items:
  221. - variable: staticIP
  222. label: "Static IP"
  223. schema:
  224. type: ipaddr
  225. cidr: true
  226. - variable: staticRoutes
  227. label: "Static Routes"
  228. schema:
  229. type: list
  230. items:
  231. - variable: staticRouteConfiguration
  232. label: "Static Route Configuration"
  233. schema:
  234. type: dict
  235. attrs:
  236. - variable: destination
  237. label: "Destination"
  238. schema:
  239. type: ipaddr
  240. cidr: true
  241. required: true
  242. - variable: gateway
  243. label: "Gateway"
  244. schema:
  245. type: ipaddr
  246. cidr: false
  247. required: true
  248. - variable: dnsPolicy
  249. label: "DNS Policy"
  250. description: "Default behaviour is where Pod inherits the name resolution configuration from the node that the pods run on, if None is specified, It allows a Pod to ignore DNS settings from the Kubernetes environment."
  251. group: "Networking"
  252. schema:
  253. type: string
  254. default: "Default"
  255. enum:
  256. - value: "Default"
  257. description: "Use Default DNS Policy"
  258. - value: "None"
  259. description: "Ignore DNS settings from the Kuberentes cluster"
  260. - variable: dnsConfig
  261. label: "DNS Configuration"
  262. group: "Networking"
  263. description: "Specify custom DNS configuration which will be applied to the pod"
  264. schema:
  265. type: dict
  266. attrs:
  267. - variable: nameservers
  268. label: "Nameservers"
  269. schema:
  270. default: []
  271. type: list
  272. items:
  273. - variable: nameserver
  274. label: "Nameserver"
  275. schema:
  276. type: string
  277. - variable: searches
  278. label: "Searches"
  279. schema:
  280. default: []
  281. type: list
  282. items:
  283. - variable: search
  284. label: "Search Entry"
  285. schema:
  286. type: string
  287. - variable: portForwardingList
  288. label: "Specify Node ports to forward to workload"
  289. group: "Networking"
  290. description: "Specify ports of node and workload to forward traffic from node port to workload port"
  291. schema:
  292. type: list
  293. items:
  294. - variable: portForwarding
  295. label: "Port Forwarding Configuration"
  296. schema:
  297. type: dict
  298. attrs:
  299. - variable: containerPort
  300. label: "Container Port"
  301. schema:
  302. type: string
  303. required: true
  304. - variable: nodePort
  305. label: "Node Port"
  306. schema:
  307. type: string
  308. required: true
  309. - variable: protocol
  310. label: "Protocol"
  311. schema:
  312. type: string
  313. default: "TCP"
  314. enum:
  315. - value: "TCP"
  316. description: "TCP Protocol"
  317. - value: "UDP"
  318. description: "UDP Protocol"
  319. # Storage Options
  320. # Host path based volumes
  321. - variable: hostPathVolumes
  322. label: "Host Path Volumes"
  323. group: "Storage"
  324. schema:
  325. type: list
  326. items:
  327. - variable: hostPathConfiguration
  328. label: "Host Path Configuration"
  329. schema:
  330. type: dict
  331. attrs:
  332. - variable: hostPath
  333. label: "Host Path"
  334. schema:
  335. type: hostpath
  336. required: true
  337. - variable: mountPath
  338. label: "Mount Path"
  339. description: "Path where host path will be mounted inside the pod"
  340. schema:
  341. type: path
  342. required: true
  343. - variable: readOnly
  344. label: "Read Only"
  345. schema:
  346. type: boolean
  347. default: false
  348. # Volumes
  349. - variable: volumes
  350. label: "Volumes"
  351. group: "Storage"
  352. schema:
  353. type: list
  354. items:
  355. - variable: volume
  356. label: "Volume"
  357. schema:
  358. type: dict
  359. $ref:
  360. - "normalize/ixVolume"
  361. attrs:
  362. - variable: mountPath
  363. label: "Mount Path"
  364. description: "Path where the volume will be mounted inside the pod"
  365. schema:
  366. type: path
  367. required: true
  368. - variable: datasetName
  369. label: "Dataset Name"
  370. schema:
  371. type: string
  372. required: true
  373. # Pod Probes
  374. # Liveness Probe
  375. - variable: livenessProbe
  376. label: "Liveness Probe"
  377. description: "Configure Liveness Probe"
  378. group: "Health Check"
  379. schema:
  380. type: dict
  381. default: null
  382. "null": true
  383. attrs:
  384. - variable: command
  385. label: "Liveness command"
  386. description: "Specify a command to determine liveness of pod"
  387. schema:
  388. type: list
  389. required: true
  390. items:
  391. - variable: commandArg
  392. label: "Command Arg"
  393. schema:
  394. type: string
  395. - variable: initialDelaySeconds
  396. label: "Seconds Delay"
  397. description: "Seconds to delay the first liveness probe"
  398. schema:
  399. type: int
  400. default: 5
  401. - variable: periodSeconds
  402. label: "Period Seconds"
  403. description: "Specify number of seconds to run liveness probe"
  404. schema:
  405. type: int
  406. default: 10
  407. # Specify GPU configuration
  408. - variable: gpuConfiguration
  409. label: "GPU Configuration"
  410. group: "Resource Reservation"
  411. schema:
  412. type: dict
  413. $ref:
  414. - "definitions/gpuConfiguration"