questions.yaml 17 KB

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