Skip to content

Commit

Permalink
all install run
Browse files Browse the repository at this point in the history
  • Loading branch information
innerpeacez committed Nov 29, 2019
1 parent 50b4b27 commit 4b10b57
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 55 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/istio-mixer-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
run: bash ${SCRIPTS_DIR}/minikube.sh wait
- name: Setup tunnel
run: minikube tunnel --log_dir=${LOG_DIR} &
# - name: Compile all and Build docker image
# run: bash ${SCRIPTS_DIR}/compile_build.sh
- name: Compile all and Build docker image
run: bash ${SCRIPTS_DIR}/compile_build.sh
- name: Istio install
run: bash ${INSTALL_SCRIPTS_DIR}/istio-deploy.sh
- name: SW And ES install
Expand Down
17 changes: 0 additions & 17 deletions install/deploy/demo-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,10 @@ set -e
BOOKINFO_VERSION="1.3"
kubectl label namespace default istio-injection=enabled
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-${BOOKINFO_VERSION}/samples/bookinfo/platform/kube/bookinfo.yaml
#kubectl apply -f ./bookinfo.yaml
#kubectl get deploy | grep -E 'details|productpage|ratings|reviews' | awk '{print $1}' | while read deploy
#do
# for i in {1..5} ;do
# echo "******************* $i time ***************************"
# kubectl get deploy -o wide
# echo "*********************** pod describe ******************************"
# kubectl describe pod `kubectl get pod -o wide | grep $deploy | awk '{print $1}'`
# echo "************************* deploy describe ****************************"
# kubectl describe deploy $deploy
# kubectl get event -o wide
# free -lh
# sleep 10
# done
#done

# check status
kubectl get deploy | grep -E 'details|productpage|ratings|reviews' | awk '{print "deployment/"$1}' | while read deploy
do
sleep 60
kubectl get event -o wide
kubectl wait ${deploy} --for condition=available --timeout=600s
done

Expand Down
10 changes: 0 additions & 10 deletions install/deploy/istio-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@ deploy_istio() {
cd $CHART_DIR

helm install istio istio -n ${NAMESPACE} -f istio/values-istio-skywalking.yaml
# --set prometheus.enabled=false --set pilot.autoscaleEnabled=false \
# --set gateways.istio-ingressgateway.autoscaleEnabled=false --set mixer.policy.autoscaleEnabled=false \
# --set mixer.telemetry.autoscaleEnabled=false \
# --set gateways.istio-ingressgateway.resources.requests={},gateways.istio-ingressgateway.resources.limits={}, \
# --set pilot.resources.requests={},pilot.resources.limits={} \
# --set mixer.telemetry.resources.requests={},mixer.telemetry.resources.limits={} \
# --set pilot.resources.requests={},pilot.resources.limits={} \
# --set global.defaultResources.requests={},global.defaultResources.limits={} \
# --set global.proxy.init.resources.requests={},global.proxy.init.resources.limits={} \
# --set global.proxy.resources.requests={},global.proxy.resources.limits={}

check() {
kubectl -n ${NAMESPACE} get deploy | grep istio | awk '{print "deployment/"$1}' | while read line ;
Expand Down
29 changes: 3 additions & 26 deletions install/deploy/skywalking-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,36 +51,13 @@ sudo sysctl -w vm.max_map_count=262144
sudo sysctl -w vm.drop_caches=1
sudo sysctl -w vm.drop_caches=3

TAG=`env | grep OAP_TAG | sed 's/OAP_TAG=//g'`

helm -n $DPELOY_NAMESPACE install skywalking skywalking --set oap.istio.adapter.enabled=$MIXER_ENABLED \
--set oap.envoy.als.enabled=$ALS_ENABLED --set oap.replicas=1
--set oap.envoy.als.enabled=$ALS_ENABLED --set oap.replicas=1 --set oap.image.tag=$TAG

for component in $NEED_CHECK_PREFIX"oap" ; do
# for i in {1..10} ;do
# echo "*****************$i time*************"
# free -lh
# echo "*****************************************************"
# kubectl -n ${DPELOY_NAMESPACE} get deploy -o wide
# echo "*****************************************************"
# if [[ `kubectl -n ${DPELOY_NAMESPACE} get deploy -o wide | grep skywalking-elasticsearch | awk '{print $2}'` == "1/1" ]] ;then
# sleep 10
# kubectl -n ${DPELOY_NAMESPACE} logs `kubectl -n ${DPELOY_NAMESPACE} get pod |grep skywalking-elasticsearch | awk '{print $1}'` --all-containers=true
# fi
# echo "*****************************************************"
# kubectl -n ${DPELOY_NAMESPACE} get jobs -o wide
# echo "*****************************************************"
# kubectl -n ${DPELOY_NAMESPACE} get event | grep -v "istio"
# kubectl -n ${DPELOY_NAMESPACE} describe pod `kubectl -n ${DPELOY_NAMESPACE} get pod |grep elasticsearch | awk '{print $1}'`
# echo "*****************************************************"
# kubectl -n ${DPELOY_NAMESPACE} describe pod `kubectl -n ${DPELOY_NAMESPACE} get pod |grep skywalking-skywalking-oap | awk '{print $1}'`
# sleep 10
# done
# echo "*****************************************************"
# sleep 10

#kubectl -n ${DPELOY_NAMESPACE} logs `kubectl -n ${DPELOY_NAMESPACE} get pod |grep skywalking-skywalking-oap | awk '{print $1}'` --all-containers=true
#kubectl -n ${DPELOY_NAMESPACE} logs $component
kubectl -n ${DPELOY_NAMESPACE} wait $component --for condition=available --timeout=600s
# kubectl -n ${DPELOY_NAMESPACE} rollout status $component --timeout 10m
done

echo "SkyWalking deployed successfully"
1 change: 1 addition & 0 deletions test/e2e-mesh/e2e-istio/scripts/compile_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
set -e

TAG=`date +"%Y-%m-%d"`
export OAP_TAG="$TAG"

git rev-parse HEAD
git submodule init
Expand Down

0 comments on commit 4b10b57

Please sign in to comment.