Skip to content

Commit

Permalink
enable kb addons
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyxjh committed Aug 14, 2024
1 parent 88a2493 commit 6d8a1a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/cloud/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,11 @@ EOF
${image_registry}/${image_repository}/kubeblocks-mongodb:v${kubeblocks_version#v:-0.8.2} \
${image_registry}/${image_repository}/kubeblocks-redis:v${kubeblocks_version#v:-0.8.2}

kbcli addon enable snapshot-controller
addons=("snapshot-controller" "csi-s3" "migration" "milvus" "weaviate")

for addon in "${addons[@]}"; do
kubectl patch addon $addon --type='merge' -p '{"spec":{"install":{"enabled":true,"resources":{},"tolerations":"[{\"effect\":\"NoSchedule\",\"key\":\"kb-controller\",\"operator\":\"Equal\",\"value\":\"true\"}]"}}}'
done

kubectl apply -f $CLOUD_DIR/vm-secret.yaml
kubectl patch vmagent -n vm victoria-metrics-k8s-stack --type merge -p '{"spec":{"additionalScrapeConfigs":{"key":"prometheus-additional.yaml","name":"additional-scrape-configs"}}}'
Expand Down

0 comments on commit 6d8a1a1

Please sign in to comment.