Skip to content

Commit

Permalink
fix: rating test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xff-dev committed Jan 8, 2024
1 parent a89d525 commit e4095fb
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions config/samples/rating_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,26 @@ function checkCm() {
info "1. create kind cluster"
make kind

nodename="kubebb-core-control-plane"
nodeip=$(kubectl get node kubebb-core-control-plane -owide | grep -v "INTERNAL-IP" | awk '{print $6}')
echo "ingress node ${nodename}, nodeip ${nodeip}"

info "2 install pre-requisites"
info "2.1 install tekton operator"
helm repo add kubebb https://kubebb.github.io/components
helm repo update kubebb
kubectl create ns tekton
helm -ntekton install tekton kubebb/tekton-operator --version 0.64.0 --wait

info "2.2 install cluster-component"
helm pull --untar kubebb/cluster-component

sed -e "s/<replaced-ingress-node-name>/${nodename}/g" cluster-component/values.yaml >tmp.yaml
kubectl create ns u4a-system
helm -nu4a-system install cluster-component cluster-component -f tmp.yaml \
--set ingress-nginx.nodeSelector.kubernetes\.io/hostname="${nodename}" --set cert-manager.enabled=false --wait

info "2.3 install cert-manager"
# install certmanager
helm repo add --force-update jetstack https://charts.jetstack.io
helm repo update jetstack
Expand All @@ -252,10 +266,13 @@ helm install cert-manager jetstack/cert-manager --namespace cert-manager --creat
--set prometheus.enabled=false \
--set installCRDs=true

info "2.2 install kubeagi arcadia operator"
info "2.4 install kubeagi arcadia operator"
helm repo add kubeagi https://kubeagi.github.io/arcadia
helm repo update kubeagi
helm install arcadia kubeagi/arcadia --namespace arcadia --create-namespace --wait --set installCRDs=true
helm pull --untar kubeagi/arcadia

sed -e "s/<replaced-ingress-nginx-ip>/${nodeip}/g" arcadia/values.yaml >tmp.yaml
helm install arcadia arcadia --namespace arcadia --create-namespace --set portal.kubebbEnabled=false --wait -f tmp.yaml

info "3. deploy kubebb/core"
docker tag kubebb/core:latest kubebb/core:example-e2e
Expand Down

0 comments on commit e4095fb

Please sign in to comment.