A Set of templates which deploys a fully-functional Trillo RunTime environment on any K8S cluster. They have been verified on Google Kubernetes Engine.
GCP account is required for GKE.
-
Create a new project in the Google Developer Console and note the new project's ID.
-
In the APIs & Services of the Google Developers Console of your new project, enable the following APIs:
- Google Compute Engine Instance Group Manager API
- Google Compute Engine Instance Group Updater API
- Google Compute Engine Instance Groups API
- Google Kubernetes Engine API
-
Install the Cloud SDK version
185.0.0
or greater using these instructions. -
Authenticate to gcloud:
$ gcloud auth login
-
Set your project and zone:
$ gcloud config set project YOUR_PROJECT_ID $ gcloud config set compute/zone <your-cluster-zone>
-
Enable
kubernetes
features:$ gcloud components update kubectl
-
Download All files of this repo from github.
-
Request access from info@trillo.io to download private dockerhub images.
-
Customize secrets for Redis
- using the command "openssl rand -base64 32", replace REDIS_SECRET in both files:
- secrets-redis.yaml
- deploy-redis.yaml
- using the command "openssl rand -base64 32", replace REDIS_SECRET in both files:
-
Customize secrets for mysql server
- using the command "openssl rand -base64 32",replace MYSQL_PASSWORD in mysql-secrets.yaml
-
Furnish secrets of your dockerhub account using https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/.
- replace DOCKER_CREDENTIALS in secrets-dh.yaml
-
(Use Console or Command-line) Create a 3-nodes k8s cluster with 3vCPUs and approx. 8GB (equivalent to the default GKE cluster.
-
Connect to the newly create cluster via command-line.
- Example:
gcloud container clusters get-credentials standard-cluster-1 --zone us-central1-a --project project-trillort
- Example:
-
Run deploy-trillo.sh to deploy the application.
-
The deployment will spin up containers for NFS servers, a MYSQL instance and trillo runtime containers.
-
A public ip address will be assigned to the trillo-rt service where all apps are deployed and launched.