questions.yaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. default: "ixVolume"
  80. enum:
  81. - value: "hostPath"
  82. description: Host Path (Path that already exists on the system)
  83. - value: "ixVolume"
  84. description: ixVolume (Dataset created automatically by the system)
  85. - variable: datasetName
  86. label: Dataset Name
  87. schema:
  88. type: string
  89. show_if: [["type", "=", "ixVolume"]]
  90. required: true
  91. hidden: true
  92. immutable: true
  93. default: "data"
  94. $ref:
  95. - "normalize/ixVolume"
  96. - variable: hostPath
  97. label: Host Path
  98. schema:
  99. type: hostpath
  100. show_if: [["type", "=", "hostPath"]]
  101. immutable: true
  102. required: true
  103. - variable: resources
  104. group: Resources Configuration
  105. label: ""
  106. schema:
  107. type: dict
  108. attrs:
  109. - variable: limits
  110. label: Limits
  111. schema:
  112. type: dict
  113. attrs:
  114. - variable: cpu
  115. label: CPU
  116. description: CPU limit for Redis.
  117. schema:
  118. type: string
  119. default: "4000m"
  120. required: true
  121. - variable: memory
  122. label: Memory
  123. description: Memory limit for Redis.
  124. schema:
  125. type: string
  126. default: "8Gi"
  127. required: true