questions.yaml 17 KB

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