Chart 安装选项

本文档描述 Rainbond Helm Chart 的安装配置选项

Operator 配置

配置项默认值说明
operator.namerainbond-operatoroperator 的 deployment 资源名称
operator.image.nameregistry.cn-hangzhou.aliyuncs.com/goodrain/rainbond-operatoroperator 镜像名称
operator.image.tagv5.14.0-releaseoperator 镜像tag
operator.image.pullPolicyIfNotPresentoperator 镜像拉取策略
operator.logLevel4operator 的日志输出级别
operator.env[0].nameCONTAINER_RUNTIME选择集群容器运行时
operator.env[0].value自动选择 docker / containerddocker / containerd

Values.yaml 示例配置

  1. operator:
  2. name: rainbond-operator
  3. image:
  4. name: registry.cn-hangzhou.aliyuncs.com/goodrain/rainbond-operator
  5. tag: v5.14.0-release
  6. pullPolicy: IfNotPresent
  7. logLevel: 4
  8. env:
  9. - name: CONTAINER_RUNTIME
  10. value: docker

Cluster 配置

高可用安装

高可用模式下必须提供外部数据库、外部 Etcd 、外部共享存储(RWX)

配置项默认值说明
Cluster.enableHAfalse启用高可用模式

配置外部镜像仓库

配置项默认值类型说明
Cluster.imageHub.enablefalseBool启用外部镜像仓库
Cluster.imageHub.domain“”String镜像仓库地址
Cluster.imageHub.namespace“”String镜像仓库命名空间
Cluster.imageHub.password“”String镜像仓库密码
Cluster.imageHub.username“”String镜像仓库用户名

配置外部ETCD

配置项默认值类型说明
Cluster.etcd.enablefalseBool启用外部ETCD
Cluster.etcd.endpoints“”ArrayETCD 集群列表
Cluster.etcd.secretName“”StringETCD 集群的证书 secret 文件,需在 rbd-system 命名空间下创建

配置外部存储

如果使用阿里云 NAS 存储,需要配置 Cluster.RWX.type=aliyun Cluster.RWX.config.server=<SERVER>,Rainbond 会自动安装阿里云 NAS CSI 并对接使用。

配置项默认值类型说明
Cluster.RWX.enablefalseBool开启外部共享存储RWX
Cluster.RWX.typenoneString公有云存储类型,目前支持aliyun
Cluster.RWX.config.storageClassName“”StringStorageClass 名称
Cluster.RWX.config.server“”String阿里云NAS存储地址
Cluster.RWO.enablefalseBool开启外部共享存储RWO
Cluster.RWO.storageClassName“”StringStorageClass 名称

配置 Rainbond 集群端数据库

配置项默认值类型说明
Cluster.regionDatabase.enablefalseBool启用外部集群端数据库
Cluster.regionDatabase.host“”String数据库地址
Cluster.regionDatabase.name“”String数据库名称
Cluster.regionDatabase.password“”String数据库密码
Cluster.regionDatabase.port“”String数据库端口
Cluster.regionDatabase.username“”String数据库用户

配置 Rainbond 控制台数据库

配置项默认值类型说明
Cluster.uiDatabase.enablefalseBool启用外部控制台数据库
Cluster.uiDatabase.host“”String数据库地址
Cluster.uiDatabase.name“”String数据库名称
Cluster.uiDatabase.password“”String数据库密码
Cluster.uiDatabase.port“”String数据库端口
Cluster.uiDatabase.username“”String数据库用户

配置集群对外 IP

设置 SLB 或 VIP 来保障 Rainbond 网关的高可用

配置项默认值类型说明
Cluster.gatewayIngressIPs“”Array配置网关负责均衡IP

配置网关节点

配置项默认值类型说明
Cluster.nodesForGateway.externalIP“”Array运行网关服务的 Kubernetes 节点外部 IP
Cluster.nodesForGateway.internalIP“”Array运行网关服务的 Kubernetes 节点内部 IP
Cluster.nodesForGateway.name“”Array运行网关服务的 Kubernetes 节点名称

配置构建节点

配置项默认值类型说明
Cluster.nodesForChaos.name“”Array运行集群构建服务的 Kubernetes 节点名称

配置集群端镜像获取地址

配置项默认值类型说明
Cluster.rainbondImageRepositoryregistry.cn-hangzhou.aliyuncs.com/goodrainString集群端安装拉取的镜像地址

配置安装版本

配置项默认值类型说明
Cluster.installVersionlatestString集群安装拉取镜像 tag

配置集群端镜像拉取策略

配置项默认值类型说明
Cluster.imagePullPolicyIfNotPresentString集群镜像拉取策略

配置集群副本

配置项默认值类型说明
Cluster.replicas2int集群POD副本数

配置集群环境检测

配置项默认值类型说明
Cluster.enableEnvChecktrueBool是否开启环境检测

配置 rbd-api 参数

配置项默认值类型说明
Component.rbd_api.argslistrbd-api Component 参数

配置 rbd-gateway 参数

配置项默认值类型说明
Component.rbd_gateway.argslistrbd-api Component 参数

使用 K3s Containerd

配置项默认值类型说明
useK3sContainerdfalsebool使用 K3s Containerd

Values.yaml 示例配置

Helm Chart value.yaml 完整示例

values.yaml

  1. #############################################
  2. #
  3. # Copyright 2023 Goodrain Co., Ltd.
  4. #
  5. # This version of the GNU Lesser General Public License incorporates
  6. # the terms and conditions of version 3 of the GNU General Public License.
  7. #
  8. #############################################
  9. # Default values for mychart.
  10. # This is a YAML-formatted file.
  11. # Declare variables to be passed into your templates.
  12. ## Install Default RBAC roles and bindings
  13. rbac:
  14. create: true
  15. apiVersion: v1
  16. ## Service account name and whether to create it
  17. serviceAccount:
  18. create: true
  19. name: rainbond-operator
  20. # Use K3s Containerd
  21. useK3sContainerd: false
  22. # rainbondOperator
  23. operator:
  24. name: rainbond-operator
  25. ## env:
  26. ## variable_name: variable
  27. image:
  28. name: registry.cn-hangzhou.aliyuncs.com/goodrain/rainbond-operator
  29. tag: v5.12.0-release
  30. pullPolicy: IfNotPresent
  31. logLevel: 4
  32. #############################################
  33. # Rainbondcluster install Configuration
  34. #############################################
  35. Cluster:
  36. # Enable the HA installation
  37. enableHA: false
  38. # Enable cluster environment detectio
  39. enableEnvCheck: true
  40. # Use an external image repository
  41. imageHub:
  42. enable: false
  43. domain: registry.cn-hangzhou.aliyuncs.com
  44. namespace: rainbond
  45. password: admin
  46. username: admin
  47. # external ETCD, ref: https://www.rainbond.com/docs/installation/ha-deployment/overview/#%E5%85%AB%E5%A4%8D%E7%94%A8-kubernetes-etcd
  48. etcd:
  49. enable: false
  50. endpoints:
  51. - 192.168.0.1:2379
  52. - 192.168.0.2:2379
  53. - 192.168.0.3:2379
  54. secretName: "rbd-etcd-secret"
  55. # External storage, fill storageClassName, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config#%E9%85%8D%E7%BD%AE%E5%A4%96%E9%83%A8%E5%AD%98%E5%82%A8
  56. RWX:
  57. enable: false
  58. type: none
  59. config:
  60. storageClassName: glusterfs-simple
  61. server:
  62. # External storage, fill storageClassName, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config#%E9%85%8D%E7%BD%AE%E5%A4%96%E9%83%A8%E5%AD%98%E5%82%A8
  63. RWO:
  64. enable: false
  65. storageClassName: glusterfs-simple
  66. # Rainbond region database, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config/#%E9%85%8D%E7%BD%AE-rainbond-%E9%9B%86%E7%BE%A4%E7%AB%AF%E6%95%B0%E6%8D%AE%E5%BA%93
  67. regionDatabase:
  68. enable: false
  69. host: 192.168.0.1
  70. name: region
  71. password: password
  72. port: 3306
  73. username: admin
  74. # Rainbond Console database, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config/#%E9%85%8D%E7%BD%AE-rainbond-%E6%8E%A7%E5%88%B6%E5%8F%B0%E6%95%B0%E6%8D%AE%E5%BA%93
  75. uiDatabase:
  76. enable: false
  77. host: 192.168.0.1
  78. name: console
  79. password: password
  80. port: 3306
  81. username: admin
  82. # External gateway IP address
  83. # gatewayIngressIPs: 192.168.0.1
  84. # rbd-chaos configuration,ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config/#%E9%85%8D%E7%BD%AE%E6%9E%84%E5%BB%BA%E8%8A%82%E7%82%B9
  85. # nodesForChaos:
  86. # - name: node1
  87. # - name: node2
  88. # rbd-gateway configuration, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config/#%E9%85%8D%E7%BD%AE%E7%BD%91%E5%85%B3%E8%8A%82%E7%82%B9
  89. # nodesForGateway:
  90. # - externalIP: 192.168.0.1
  91. # internalIP: 192.168.0.1
  92. # name: node1
  93. # - externalIP: 192.168.0.2
  94. # internalIP: 192.168.0.2
  95. # name: node2
  96. # Component unified image repository and namespace, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config/#%E9%85%8D%E7%BD%AE%E9%9B%86%E7%BE%A4%E7%AB%AF%E9%95%9C%E5%83%8F%E8%8E%B7%E5%8F%96%E5%9C%B0%E5%9D%80
  97. rainbondImageRepository: registry.cn-hangzhou.aliyuncs.com/goodrain
  98. # Component image version, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config/#%E9%85%8D%E7%BD%AE%E5%AE%89%E8%A3%85%E7%89%88%E6%9C%AC
  99. installVersion: v5.12.0-release
  100. # Component image pull policy, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config/#%E9%85%8D%E7%BD%AE%E9%9B%86%E7%BE%A4%E7%AB%AF%E9%95%9C%E5%83%8F%E6%8B%89%E5%8F%96%E7%AD%96%E7%95%A5
  101. imagePullPolicy: IfNotPresent
  102. # Number of component copies, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config/#%E9%85%8D%E7%BD%AE%E9%9B%86%E7%BE%A4%E5%89%AF%E6%9C%AC
  103. replicas: 2
  104. ############################################
  105. # Rainbond Component Configuration
  106. ############################################
  107. Component:
  108. # rbd-api component configuration, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config#%E9%85%8D%E7%BD%AE-rbd-api-%E5%8F%82%E6%95%B0
  109. rbd_api:
  110. args:
  111. # - --api-addr-ssl 0.0.0.0:8443
  112. # - --ws-addr 0.0.0.0:6060
  113. # rbd-gateway component configuration, ref: https://www.rainbond.com/docs/installation/install-with-helm/vaules-config#%E9%85%8D%E7%BD%AE-rbd-gateway-%E5%8F%82%E6%95%B0
  114. rbd_gateway:
  115. args:
  116. # - --service-http-port 80
  117. # - --service-https-port 443
  118. # rbd-node component configuration
  119. rbd_node:
  120. args:
  121. # rbd-hub component configuration
  122. rbd_hub:
  123. args:
  124. # rbd-mq component configuration
  125. rbd_mq:
  126. args:
  127. # rbd-resource-proxy component configuration
  128. rbd_resource_proxy:
  129. args:
  130. # rbd-webcli component configuration
  131. rbd_webcli:
  132. args:
  133. # rbd-monitor component configuration
  134. rbd_monitor:
  135. args:
  136. # rbd-db component configuration
  137. rbd_db:
  138. args:
  139. # rbd-chaos component configuration
  140. rbd_chaos:
  141. args:
  142. # rbd-worker component configuration
  143. rbd_worker:
  144. args:
  145. # rbd-eventlog component configuration
  146. rbd_eventlog:
  147. args:
  148. # rbd-app-ui component configuration
  149. rbd_app_ui:
  150. enable: true
  151. args:
  152. # nfs-provisioner component configuration
  153. nfs_provisioner:
  154. image:
  155. # rbd-etcd component configuration
  156. rbd_etcd:
  157. image:
  158. # metrics-server component configuration
  159. metrics_server:
  160. image:
  161. # dashboard-metrics-scraper component configuration
  162. dashboard_metrics_scraper:
  163. image:
  164. # kubernetes-dashboard component configuration
  165. kubernetes_dashboard:
  166. image:
  167. ## Enable nfs chart, default is false
  168. nfs-client-provisioner:
  169. childChart:
  170. enable: false
  171. nfs:
  172. server:
  173. path: