Last active
January 24, 2019 18:25
-
-
Save mgdaily/89fc9ba6232877ea13291b2bc158db8f to your computer and use it in GitHub Desktop.
Handy scripts for quickly bringing up a site-software Kubernetes test stack
This file contains hidden or 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
#!/bin/bash | |
#deploy jade and required databases for site-software kubernetes test stack | |
#$1 - directory containing kubernetes deployment configuration files e.g site-software/deployment/ | |
deployment_dir=$1 | |
kubectl apply -f $deployment_dir/pond-db-deployment.yaml | |
kubectl apply -f $deployment_dir/lake-db-deployment.yaml | |
kubectl apply -f $deployment_dir/pubsub-db-deployment.yaml | |
kubectl apply -f $deployment_dir/jade-deployment.yaml |
This file contains hidden or 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
#!/bin/bash | |
#deploy site stack and lake for site-software kubernetes test stack | |
#$1 - directory containing kubernetes deployment configuration files e.g site-software/deployment/ | |
deployment_dir=$1 | |
kubectl apply -f $deployment_dir/site-deployment.yaml | |
kubectl apply -f $deployment_dir/observatory-deployment.yaml | |
kubectl apply -f $deployment_dir/telescope-deployment.yaml | |
kubectl apply -f $deployment_dir/instrument-deployment.yaml | |
kubectl apply -f $deployment_dir/lake-deployment.yaml |
This file contains hidden or 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
#!/bin/bash | |
#start services required for site-software kubernetes test stack | |
#$1 - directory containing kubernetes service configuration files e.g site-software/deployment/ | |
service_dir=$1 | |
for filename in $service_dir/*service.yaml; do | |
kubectl apply -f $filename | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment