Last active
July 23, 2016 20:40
-
-
Save ento/3529a4fae8771e4e87e62370e6d25236 to your computer and use it in GitHub Desktop.
Deploying DeepAnimeBot to GKE
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
gcloud container clusters create deepanimebot --machine-type g1-small --num-nodes 1 | |
# to setup process based monitoring | |
gcloud compute ssh $(kubectl get nodes --output=jsonpath={.items[*].metadata.name}) | |
curl -O https://repo.stackdriver.com/stack-install.sh | |
sudo bash stack-install.sh --write-gcm | |
sudo /opt/stackdriver/stack-config --api-key XXXXXXXXXXXXXXXXXXXXXX | |
sudo service stackdriver-extractor start | |
# create stuff | |
kubectl create -f etc/bot-secrets.yaml | |
kubectl create -f etc/all-containers.yaml | |
# updating stuff | |
python tasks.py build_and_push_images 0.1.4 | |
# bump versions in etc/all-conatiners.yaml | |
kubectl apply -f etc/all-containers.yaml | |
# setting up your environment in a new machine | |
gcloud components install kubectl | |
gcloud container clusters get-credentials deepanimebot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment