questions.yaml 15 KB

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