multi-cluster management
Add the following repo to use the chart:
helm repo add hyperos http://121.40.102.76:30088/charts/hyperos
# parameter
common:
clusterName: cluster1
# Start different controllers by specifying the cluster level, and decide whether to install gaia-scheduler.
# value: 'cluster', 'field' or 'global'
clusterLevel: cluster
mcSource: prometheus
# Prometheus address of the current cluster
promUrlPrefix: "http://prometheus-kube-prometheus-hypermoni.hypermonitor:9090"
useHypernodeController: false
topoSyncBaseUrl: "http://ssiexpose.synccontroller.svc:8080"
networkBindUrl: http://nbi.domain1.svc.cluster.local/v1.0/network/scheme # only on field level
resourceBindingMergePostURL: http://192.168.101.73:37100/api/server/preScheduleSchemeReceiver
# get label from hypernode if true, or get labels from node
useNodeRoleSelector: true
aliyunSourceSite: '[{"content":"47.111.131.212","type":"ipaddr","priority":"20","port":80,"weight":"10"}]'
# example
## upgrade or install if not exist
helm upgrade --install -n gaia-system gaia hyperos/gaia --version=2.1.0-alpha \
--set common.clusterLevel=global \
--set common.topoSyncBaseUrl=http://192.168.101.11:31555
Run the following command in global cluster
helm repo update hyperos
helm install -n gaia-system gaia hyperos/gaia --create-namespace --version=2.1.0-alpha \
--set common.clusterLevel=global
Run the following command in field cluster
helm repo update hyperos
helm install -n gaia-system gaia hyperos/gaia --create-namespace --version=2.1.0-alpha \
--set common.clusterLevel=field
Run the following command in cluster cluster
helm repo update hyperos
helm install -n gaia-system gaia hyperos/gaia --create-namespace --version=2.1.0-alpha \
--set common.clusterLevel=cluster
If the crd changes, you need to upgrade or reinstall the crd.
Run the following command in global cluster
helm repo update hyperos
helm upgrade -n gaia-system gaia hyperos/gaia --version=2.1.0-alpha \
--set common.clusterLevel=global
Run the following command in field cluster
helm repo update hyperos
helm upgrade -n gaia-system gaia hyperos/gaia --version=2.1.0-alpha \
--set common.clusterLevel=field
Run the following command in cluster cluster
helm repo update hyperos
helm upgrade -n gaia-system gaia hyperos/gaia --version=2.1.0-alpha \
--set common.clusterLevel=cluster