questions.yaml 17 KB

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