This repository was archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[K8s Deployment] Improve deployment configuration and scripts (#693)
- Loading branch information
Showing
21 changed files
with
42 additions
and
186 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,33 @@ | |
|
||
#!/bin/bash | ||
|
||
#Clean up | ||
kubectl delete svc alcor | ||
kubectl delete deployment alcor | ||
if [ ! -d ~/alcor_logs ]; then | ||
mkdir -p ~/alcor_logs | ||
fi | ||
|
||
kubectl apply -f kubernetes/app/controller-deployment.yaml | ||
kubectl get deployments -o wide | ||
export KUBECONFIG=/etc/kubernetes/admin.conf | ||
|
||
kubectl expose deployment alcor --type=LoadBalancer --name=alcor | ||
kubectl get svc -o wide | ||
kubectl get po -A | ||
echo "***** Delete Alcor Microservices *****" 2>&1 | tee ~/alcor_logs/alcor.log | ||
chmod +x /root/alcor/kubernetes/deleteYaml.sh | ||
/root/alcor/kubernetes/deleteYaml.sh 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
|
||
cd /root | ||
echo "***** Download and build images on each Node *****" 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
./deploy-alcor-nodes.sh update-alcor4.sh alcor-nodes-ips | ||
|
||
echo "***** Deploy Aclor Cluster *****" 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
cd /root/alcor/kubernetes/ | ||
chmod +x /root/alcor/kubernetes/createYaml.sh | ||
/root/alcor/kubernetes/createYaml.sh 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
cd /root | ||
|
||
sleep 30s | ||
|
||
echo "***** Alcor Microservices Status *****" 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
kubectl get pods -A 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
|
||
echo "***** Create Segments *****" 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
curl -X POST -H "Content-Type: application/json" -H "Accept: */*" "http://localhost:30001/segments/createDefaultTable" 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
|
||
echo "***** Register Nodes *****" 2>&1 | tee -a ~/alcor_logs/alcor.log | ||
curl -X POST -H "Content-Type: multipart/form-data" -F "[email protected]" "http://localhost:30007/nodes/upload" 2>&1 | tee -a ~/alcor_logs/alcor.log |