Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change deployment script to create ES first
- Loading branch information
1 parent
4b6a158
commit fbfa6b6
Showing
5 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
#!/bin/bash | ||
export DIR=kubernetes | ||
|
||
USAGE="USAGE: ./kubernetes/bin/deploy-development.sh create|delete" | ||
|
||
if [ "$1" = "create" ]; then | ||
echo "Creating objects from configurations." | ||
echo "Make sure that persistent disk is already created." | ||
kubectl create -R -f ${DIR}/yamls/development/ | ||
echo "Waiting for server to start up. ~1m." | ||
sleep 60 | ||
echo "" | ||
echo "Creating Elasticsearch Replication Controller" | ||
kubectl create -R -f ${DIR}/yamls/development/elasticsearch/ | ||
echo "Waiting for server to start up. ~40s." | ||
sleep 40 | ||
echo "Creating loklak deployment" | ||
kubectl create -R -f ${DIR}/yamls/development/api-server/ | ||
echo "Trying to fetch public IP" | ||
kubectl get services --namespace=web | ||
echo "Deployed loklak on Kubernetes" | ||
elif [ "$1" = "delete" ]; then | ||
echo "Deleting objects created from configurations" | ||
kubectl delete -R -f ${DIR}/yamls/development/ | ||
kubectl delete -R -f ${DIR}/yamls/development/ || true | ||
echo "Deleted loklak project from Kubernetes" | ||
elif [ -z "$1" ]; then | ||
echo "No arguments provided" | ||
echo $USAGE | ||
fi |
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