questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. groups:
  2. - name: WG-Easy Configuration
  3. description: Configure WG-Easy
  4. - name: Advanced Pod Configuration
  5. description: Configure Advanced Pod Options for WG-Easy
  6. - name: Network Configuration
  7. description: Configure Network for WG-Easy
  8. - name: Storage Configuration
  9. description: Configure Storage for WG-Easy
  10. - name: Resources Configuration
  11. description: Configure Resources for WG-Easy
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: wgNetwork
  23. label: ""
  24. group: Network Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: udpPort
  29. label: UDP Port
  30. description: The port for the WG-Easy Wireguard service.
  31. schema:
  32. type: int
  33. default: 30057
  34. min: 9000
  35. max: 65535
  36. required: true
  37. - variable: webPort
  38. label: Web Port
  39. description: The port for the WG-Easy Web UI.
  40. schema:
  41. type: int
  42. default: 30058
  43. min: 9000
  44. max: 65535
  45. required: true
  46. - variable: hostNetwork
  47. label: Host Network
  48. schema:
  49. type: boolean
  50. default: true
  51. - variable: podOptions
  52. label: ""
  53. group: Advanced Pod Configuration
  54. schema:
  55. type: dict
  56. attrs:
  57. - variable: dnsConfig
  58. label: Advanced DNS Configuration
  59. schema:
  60. type: dict
  61. attrs:
  62. - variable: options
  63. label: DNS Options
  64. schema:
  65. type: list
  66. items:
  67. - variable: optionsEntry
  68. label: DNS Option Entry
  69. schema:
  70. type: dict
  71. attrs:
  72. - variable: name
  73. label: Option Name
  74. schema:
  75. type: string
  76. required: true
  77. - variable: value
  78. label: Option Value
  79. schema:
  80. type: string
  81. required: true
  82. - variable: wgConfig
  83. label: ""
  84. group: WG-Easy Configuration
  85. schema:
  86. type: dict
  87. attrs:
  88. - variable: host
  89. label: Hostname or IP
  90. description: The public hostname or IP of your VPN server.
  91. schema:
  92. type: string
  93. required: true
  94. $ref:
  95. - "definitions/nodeIP"
  96. - variable: password
  97. label: Password for WebUI
  98. description: When set, requires a password when logging in to the Web UI.
  99. schema:
  100. type: string
  101. private: true
  102. default: ""
  103. - variable: keepAlive
  104. label: Persistent Keep Alive
  105. description: Value in seconds to keep the "connection" open. If this value is 0, then connections won't be kept alive.
  106. schema:
  107. type: int
  108. required: true
  109. default: 0
  110. - variable: clientMTU
  111. label: Clients MTU
  112. description: The MTU the clients will use.
  113. schema:
  114. type: int
  115. required: true
  116. default: 1420
  117. - variable: clientAddressRange
  118. label: Clients IP Address Range
  119. description: Clients IP address range.
  120. schema:
  121. type: string
  122. required: true
  123. default: 10.8.0.x
  124. - variable: clientDNSServer
  125. label: Clients DNS Server
  126. description: Clients DNS Server.
  127. schema:
  128. type: string
  129. required: true
  130. default: "1.1.1.1"
  131. - variable: allowedIPs
  132. label: Allowed IPs
  133. description: Allowed IPs clients will use. If none provided, <0.0.0.0/0,::/0> will be used.
  134. schema:
  135. type: list
  136. default: []
  137. items:
  138. - variable: entry
  139. label: Allowed IP Entry
  140. schema:
  141. type: string
  142. required: true
  143. default: ""
  144. - variable: additionalEnvs
  145. label: Additional Environment Variables
  146. description: Configure additional environment variables for WG-Easy.
  147. schema:
  148. type: list
  149. default: []
  150. items:
  151. - variable: env
  152. label: Environment Variable
  153. schema:
  154. type: dict
  155. attrs:
  156. - variable: name
  157. label: Name
  158. schema:
  159. type: string
  160. required: true
  161. - variable: value
  162. label: Value
  163. schema:
  164. type: string
  165. required: true
  166. - variable: wgStorage
  167. label: ""
  168. group: Storage Configuration
  169. schema:
  170. type: dict
  171. attrs:
  172. - variable: config
  173. label: WG-Easy Config Storage
  174. description: The path to store WG-Easy Configuration.
  175. schema:
  176. type: dict
  177. attrs:
  178. - variable: type
  179. label: Type
  180. description: |
  181. ixVolume: Is dataset created automatically by the system.</br>
  182. Host Path: Is a path that already exists on the system.
  183. schema:
  184. type: string
  185. required: true
  186. immutable: true
  187. default: "ixVolume"
  188. enum:
  189. - value: "hostPath"
  190. description: Host Path (Path that already exists on the system)
  191. - value: "ixVolume"
  192. description: ixVolume (Dataset created automatically by the system)
  193. - variable: ixVolumeConfig
  194. label: ixVolume Configuration
  195. description: The configuration for the ixVolume dataset.
  196. schema:
  197. type: dict
  198. show_if: [["type", "=", "ixVolume"]]
  199. $ref:
  200. - "normalize/ixVolume"
  201. attrs:
  202. - variable: aclEnable
  203. label: Enable ACL
  204. description: Enable ACL for the dataset.
  205. schema:
  206. type: boolean
  207. default: false
  208. - variable: datasetName
  209. label: Dataset Name
  210. description: The name of the dataset to use for storage.
  211. schema:
  212. type: string
  213. required: true
  214. immutable: true
  215. hidden: true
  216. default: "config"
  217. - variable: aclEntries
  218. label: ACL Configuration
  219. schema:
  220. type: dict
  221. show_if: [["aclEnable", "=", true]]
  222. attrs: []
  223. - variable: hostPathConfig
  224. label: Host Path Config
  225. schema:
  226. type: dict
  227. show_if: [["type", "=", "hostPath"]]
  228. attrs:
  229. - variable: aclEnable
  230. label: Enable ACL
  231. description: Enable ACL for the dataset.
  232. schema:
  233. type: boolean
  234. default: false
  235. - variable: acl
  236. label: ACL Configuration
  237. schema:
  238. type: dict
  239. show_if: [["aclEnable", "=", true]]
  240. attrs: []
  241. $ref:
  242. - "normalize/acl"
  243. - variable: hostPath
  244. label: Host Path
  245. description: The host path to use for storage.
  246. schema:
  247. type: hostpath
  248. show_if: [["aclEnable", "=", false]]
  249. required: true
  250. - variable: additionalStorages
  251. label: Additional Storage
  252. description: Additional storage for WG-Easy.
  253. schema:
  254. type: list
  255. default: []
  256. items:
  257. - variable: storageEntry
  258. label: Storage Entry
  259. schema:
  260. type: dict
  261. attrs:
  262. - variable: type
  263. label: Type
  264. description: |
  265. ixVolume: Is dataset created automatically by the system.</br>
  266. Host Path: Is a path that already exists on the system.</br>
  267. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  268. schema:
  269. type: string
  270. required: true
  271. default: "ixVolume"
  272. immutable: true
  273. enum:
  274. - value: "hostPath"
  275. description: Host Path (Path that already exists on the system)
  276. - value: "ixVolume"
  277. description: ixVolume (Dataset created automatically by the system)
  278. - value: "smb-pv-pvc"
  279. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  280. - variable: readOnly
  281. label: Read Only
  282. description: Mount the volume as read only.
  283. schema:
  284. type: boolean
  285. default: false
  286. - variable: mountPath
  287. label: Mount Path
  288. description: The path inside the container to mount the storage.
  289. schema:
  290. type: path
  291. required: true
  292. - variable: hostPathConfig
  293. label: Host Path Config
  294. schema:
  295. type: dict
  296. show_if: [["type", "=", "hostPath"]]
  297. attrs:
  298. - variable: aclEnable
  299. label: Enable ACL
  300. description: Enable ACL for the dataset.
  301. schema:
  302. type: boolean
  303. default: false
  304. - variable: acl
  305. label: ACL Configuration
  306. schema:
  307. type: dict
  308. show_if: [["aclEnable", "=", true]]
  309. attrs: []
  310. $ref:
  311. - "normalize/acl"
  312. - variable: hostPath
  313. label: Host Path
  314. description: The host path to use for storage.
  315. schema:
  316. type: hostpath
  317. show_if: [["aclEnable", "=", false]]
  318. required: true
  319. - variable: ixVolumeConfig
  320. label: ixVolume Configuration
  321. description: The configuration for the ixVolume dataset.
  322. schema:
  323. type: dict
  324. show_if: [["type", "=", "ixVolume"]]
  325. $ref:
  326. - "normalize/ixVolume"
  327. attrs:
  328. - variable: aclEnable
  329. label: Enable ACL
  330. description: Enable ACL for the dataset.
  331. schema:
  332. type: boolean
  333. default: false
  334. - variable: datasetName
  335. label: Dataset Name
  336. description: The name of the dataset to use for storage.
  337. schema:
  338. type: string
  339. required: true
  340. immutable: true
  341. default: "storage_entry"
  342. - variable: aclEntries
  343. label: ACL Configuration
  344. schema:
  345. type: dict
  346. show_if: [["aclEnable", "=", true]]
  347. attrs: []
  348. - variable: smbConfig
  349. label: SMB Share Configuration
  350. description: The configuration for the SMB Share.
  351. schema:
  352. type: dict
  353. show_if: [["type", "=", "smb-pv-pvc"]]
  354. attrs:
  355. - variable: server
  356. label: Server
  357. description: The server for the SMB share.
  358. schema:
  359. type: string
  360. required: true
  361. - variable: share
  362. label: Share
  363. description: The share name for the SMB share.
  364. schema:
  365. type: string
  366. required: true
  367. - variable: domain
  368. label: Domain (Optional)
  369. description: The domain for the SMB share.
  370. schema:
  371. type: string
  372. - variable: username
  373. label: Username
  374. description: The username for the SMB share.
  375. schema:
  376. type: string
  377. required: true
  378. - variable: password
  379. label: Password
  380. description: The password for the SMB share.
  381. schema:
  382. type: string
  383. required: true
  384. private: true
  385. - variable: size
  386. label: Size (in Gi)
  387. description: The size of the volume quota.
  388. schema:
  389. type: int
  390. required: true
  391. min: 1
  392. default: 1
  393. - variable: resources
  394. group: Resources Configuration
  395. label: ""
  396. schema:
  397. type: dict
  398. attrs:
  399. - variable: limits
  400. label: Limits
  401. schema:
  402. type: dict
  403. attrs:
  404. - variable: cpu
  405. label: CPU
  406. description: CPU limit for WG-Easy.
  407. schema:
  408. type: string
  409. max_length: 6
  410. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  411. valid_chars_error: |
  412. Valid CPU limit formats are</br>
  413. - Plain Integer - eg. 1</br>
  414. - Float - eg. 0.5</br>
  415. - Milicpu - eg. 500m
  416. default: "4000m"
  417. required: true
  418. - variable: memory
  419. label: Memory
  420. description: Memory limit for WG-Easy.
  421. schema:
  422. type: string
  423. max_length: 12
  424. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  425. valid_chars_error: |
  426. Valid Memory limit formats are</br>
  427. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  428. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  429. - Plain Integer in bytes - eg. 1024</br>
  430. - Exponent - eg. 134e6
  431. default: "8Gi"
  432. required: true