Skip to content

Commit

Permalink
Patch kb addon (labring#4969)
Browse files Browse the repository at this point in the history
* update kafka monitor

* enable kb addons
  • Loading branch information
wallyxjh authored and bxy4543 committed Aug 16, 2024
1 parent 9b5b270 commit f8d40ca
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 f8d40ca

Please sign in to comment.