questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  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: Web 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. immutable: true
  250. required: true
  251. - variable: additionalStorages
  252. label: Additional Storage
  253. description: Additional storage for WG-Easy.
  254. schema:
  255. type: list
  256. default: []
  257. items:
  258. - variable: storageEntry
  259. label: Storage Entry
  260. schema:
  261. type: dict
  262. attrs:
  263. - variable: type
  264. label: Type
  265. description: |
  266. ixVolume: Is dataset created automatically by the system.</br>
  267. Host Path: Is a path that already exists on the system.</br>
  268. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  269. schema:
  270. type: string
  271. required: true
  272. default: "ixVolume"
  273. immutable: true
  274. enum:
  275. - value: "hostPath"
  276. description: Host Path (Path that already exists on the system)
  277. - value: "ixVolume"
  278. description: ixVolume (Dataset created automatically by the system)
  279. - value: "smb-pv-pvc"
  280. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  281. - variable: readOnly
  282. label: Read Only
  283. description: Mount the volume as read only.
  284. schema:
  285. type: boolean
  286. default: false
  287. - variable: mountPath
  288. label: Mount Path
  289. description: The path inside the container to mount the storage.
  290. schema:
  291. type: path
  292. required: true
  293. - variable: hostPathConfig
  294. label: Host Path Config
  295. schema:
  296. type: dict
  297. show_if: [["type", "=", "hostPath"]]
  298. attrs:
  299. - variable: aclEnable
  300. label: Enable ACL
  301. description: Enable ACL for the dataset.
  302. schema:
  303. type: boolean
  304. default: false
  305. - variable: acl
  306. label: ACL Configuration
  307. schema:
  308. type: dict
  309. show_if: [["aclEnable", "=", true]]
  310. attrs: []
  311. $ref:
  312. - "normalize/acl"
  313. - variable: hostPath
  314. label: Host Path
  315. description: The host path to use for storage.
  316. schema:
  317. type: hostpath
  318. show_if: [["aclEnable", "=", false]]
  319. immutable: true
  320. required: true
  321. - variable: ixVolumeConfig
  322. label: ixVolume Configuration
  323. description: The configuration for the ixVolume dataset.
  324. schema:
  325. type: dict
  326. show_if: [["type", "=", "ixVolume"]]
  327. $ref:
  328. - "normalize/ixVolume"
  329. attrs:
  330. - variable: aclEnable
  331. label: Enable ACL
  332. description: Enable ACL for the dataset.
  333. schema:
  334. type: boolean
  335. default: false
  336. - variable: datasetName
  337. label: Dataset Name
  338. description: The name of the dataset to use for storage.
  339. schema:
  340. type: string
  341. required: true
  342. immutable: true
  343. default: "storage_entry"
  344. - variable: aclEntries
  345. label: ACL Configuration
  346. schema:
  347. type: dict
  348. show_if: [["aclEnable", "=", true]]
  349. attrs: []
  350. - variable: smbConfig
  351. label: SMB Share Configuration
  352. description: The configuration for the SMB Share.
  353. schema:
  354. type: dict
  355. show_if: [["type", "=", "smb-pv-pvc"]]
  356. attrs:
  357. - variable: server
  358. label: Server
  359. description: The server for the SMB share.
  360. schema:
  361. type: string
  362. required: true
  363. - variable: share
  364. label: Share
  365. description: The share name for the SMB share.
  366. schema:
  367. type: string
  368. required: true
  369. - variable: domain
  370. label: Domain (Optional)
  371. description: The domain for the SMB share.
  372. schema:
  373. type: string
  374. - variable: username
  375. label: Username
  376. description: The username for the SMB share.
  377. schema:
  378. type: string
  379. required: true
  380. - variable: password
  381. label: Password
  382. description: The password for the SMB share.
  383. schema:
  384. type: string
  385. required: true
  386. private: true
  387. - variable: size
  388. label: Size (in Gi)
  389. description: The size of the volume quota.
  390. schema:
  391. type: int
  392. required: true
  393. min: 1
  394. default: 1
  395. - variable: resources
  396. group: Resources Configuration
  397. label: ""
  398. schema:
  399. type: dict
  400. attrs:
  401. - variable: limits
  402. label: Limits
  403. schema:
  404. type: dict
  405. attrs:
  406. - variable: cpu
  407. label: CPU
  408. description: CPU limit for WG-Easy.
  409. schema:
  410. type: string
  411. max_length: 6
  412. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  413. valid_chars_error: |
  414. Valid CPU limit formats are</br>
  415. - Plain Integer - eg. 1</br>
  416. - Float - eg. 0.5</br>
  417. - Milicpu - eg. 500m
  418. default: "4000m"
  419. required: true
  420. - variable: memory
  421. label: Memory
  422. description: Memory limit for WG-Easy.
  423. schema:
  424. type: string
  425. max_length: 12
  426. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  427. valid_chars_error: |
  428. Valid Memory limit formats are</br>
  429. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  430. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  431. - Plain Integer in bytes - eg. 1024</br>
  432. - Exponent - eg. 134e6
  433. default: "8Gi"
  434. required: true