questions.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. groups:
  2. - name: Redis Configuration
  3. description: Configure Redis
  4. - name: Network Configuration
  5. description: Configure Network for Redis
  6. - name: Storage Configuration
  7. description: Configure Storage for Redis
  8. - name: Resources Configuration
  9. description: Configure Resources for Redis
  10. questions:
  11. - variable: redisConfig
  12. label: ""
  13. group: Redis Configuration
  14. schema:
  15. type: dict
  16. attrs:
  17. - variable: allowEmptyPassword
  18. label: Allow Empty Password
  19. description: |
  20. Allow empty password for Redis.</br>
  21. It's recommended to keep this disabled.
  22. schema:
  23. type: boolean
  24. default: false
  25. - variable: password
  26. label: Password
  27. description: Password for Redis.
  28. schema:
  29. type: string
  30. required: true
  31. private: true
  32. # Character @ is not allowed in password
  33. valid_chars: '^((?!@).)*$'
  34. valid_chars_error: "Character @ is not allowed in password"
  35. show_if: [[ "allowEmptyPassword", "=", false ]]
  36. default: ""
  37. - variable: redisNetwork
  38. label: ""
  39. group: Network Configuration
  40. schema:
  41. type: dict
  42. attrs:
  43. - variable: hostNetwork
  44. label: Host Network
  45. description: |
  46. Bind to the host network. It's recommended to keep this disabled.</br>
  47. schema:
  48. type: boolean
  49. default: false
  50. - variable: redisPort
  51. label: Redis Port
  52. description: The port for Redis.
  53. schema:
  54. type: int
  55. default: 30036
  56. min: 9000
  57. max: 65535
  58. required: true
  59. - variable: redisStorage
  60. label: ""
  61. group: Storage Configuration
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: data
  66. label: Redis Data Storage
  67. description: The path to store Redis Data.
  68. schema:
  69. type: dict
  70. attrs:
  71. - variable: type
  72. label: Type
  73. description: |
  74. ixVolume: Is dataset created automatically by the system.</br>
  75. Host Path: Is a path that already exists on the system.
  76. schema:
  77. type: string
  78. required: true
  79. immutable: true
  80. default: "ixVolume"
  81. enum:
  82. - value: "hostPath"
  83. description: Host Path (Path that already exists on the system)
  84. - value: "ixVolume"
  85. description: ixVolume (Dataset created automatically by the system)
  86. - variable: datasetName
  87. label: Dataset Name
  88. schema:
  89. type: string
  90. show_if: [["type", "=", "ixVolume"]]
  91. required: true
  92. hidden: true
  93. immutable: true
  94. default: "data"
  95. $ref:
  96. - "normalize/ixVolume"
  97. - variable: hostPath
  98. label: Host Path
  99. schema:
  100. type: hostpath
  101. show_if: [["type", "=", "hostPath"]]
  102. immutable: true
  103. required: true
  104. - variable: resources
  105. group: Resources Configuration
  106. label: ""
  107. schema:
  108. type: dict
  109. attrs:
  110. - variable: limits
  111. label: Limits
  112. schema:
  113. type: dict
  114. attrs:
  115. - variable: cpu
  116. label: CPU
  117. description: CPU limit for Redis.
  118. schema:
  119. type: string
  120. max_length: 6
  121. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  122. valid_chars_error: |
  123. Valid CPU limit formats are</br>
  124. - Plain Integer - eg. 1</br>
  125. - Float - eg. 0.5</br>
  126. - Milicpu - eg. 500m
  127. default: "4000m"
  128. required: true
  129. - variable: memory
  130. label: Memory
  131. description: Memory limit for Redis.
  132. schema:
  133. type: string
  134. max_length: 12
  135. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  136. valid_chars_error: |
  137. Valid Memory limit formats are</br>
  138. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  139. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  140. - Plain Integer in bytes - eg. 1024</br>
  141. - Exponent - eg. 134e6
  142. default: "8Gi"
  143. required: true