-
Notifications
You must be signed in to change notification settings - Fork 0
Google Cloud Platform
This page will include all the Google Cloud Platform related topics, e.g, how to create compute node, how to create Kubernetes clusters, what about billing, etc etc.
We don't run detox_bot in k8s cluster when we don't use it since there are still more than a month until the final project report and also deployed detox_bot in k8s cluster is being charged about 1~1.5 dollars a day.
Therefore, we will shutdown the detox_bot when we don't use it or testing, and only deploy it to k8s cluster when necessary in order to reduce the billing amount.
Here is the instructions for shutdown the existing detox_bot and redeploy later.
Once you finished your testing, you need to shutdown the detox_bot. To do that, you have two action item need to be done.
- Delete the service in "Kubernetes Engine" -> "Services"
- Delete the workload in "Kubernetes Engine" -> "Workloads"
DO NOT DELETE THE CLUSTERS in "Kubernetes Engine". If you deleted in by accident, create the new k8s cluster with minimum size.
- Kubernetes Engine -> Clusters
- Check the "cs498-cca-k8s" checkbox ( or k8s cluster name that you created ), and press "Deploy" link on top of the page.
- Page will be forwarded to "Workload" page. In first "Container" step, choose "Existing container image", and then press "select" for image, and if popup window opens, follow GitHub.com -> freesoft -> detox_bot2. You'll see a few docker images created, choose the recent image OR the image you'd like to deploy and test, and press CONTINUE.
- then press "CONTINUE" to move to the 2nd step.
- In Configuration, give app a name. Just use "detox-bot" should be fine. (there is some naming limitation) Leave the "Cluster" section as it is unless you created specific k8s cluster you'd like to deploy the docker image.
- press "DEPLOY".
- Done. It will takes some time for GCP to create a new k8s pod, loadbalancer, etc. Wait for it.
- After creation is over, test your stuff. If you need to access web chat or any web endpoint from outside, you need to expose the service. Press "Expose" in Workloads page, and add "5000" in port section. (web chat runs with listening port 5000). Add others port as you needed.
- Once finished, shutdown the app using "What to do after detox_bot testing(shutdown)" section information.
UIUC MCS-DS CS498 CCA - Project Team 15.