This folder contains scripts used to deploy the Threadit API to Google Kubernetes Engine (GKE).
Creates a new GKE cluster for the Threadit deployment.
$ ./create-cluster.shDeploys all services and components to the cluster using kubectl.
$ ./deploy.shThis will deploy using the latest available Docker images in Google Container Registry (GCR).
If you want to build and push the Docker images before deploying, use the --build flag:
$ ./deploy.sh --buildDisplays information about your current GKE cluster and its resources.
$ ./cluster-info.sh--namescapesDisplays a list of all Kubernetes namespaces in the current cluster.--podsShows the status and details of all pods running in the specified namespace.--servicesLists all services deployed in the specified namespace.--deploymentsShows deployment configurations and statuses for the namespace.--resources-podsDisplays real-time CPU and memory usage metrics for each pod.--resources-nodesDisplays real-time CPU and memory usage metrics for each node in the cluster.--hpaShows all Horizontal Pod Autoscalers in the namespace, including current and target scaling metrics.--allRuns all of the above commands to display full cluster info.
Deletes the Kubernetes cluster and all associated resources to avoid incurring unnecessary costs.
$ ./delete-cluster.shNote: These scripts must be executed inside the scripts/, otherwise they wil not function properly.