notice
This is documentation for Rasa X Documentation v1.0.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (1.1.x).
Installation
This page contains detailed instructions for bootstrapping a Google GKE Cluster (K8S) via Terraform.
Installation
We use Terraform and the offical Gruntwork Terraform GKE Module Please visit the pages for a more detail on the setup.
Set Up and Initialize your Terraform Workspace
Clone the Gruntwork GKE module Repository:
Switch into the repository directory:
Configure Terraform GKE Cluster
For educational reasons, we will not use the Helm resource in this step. Please uncomment the following lines in main.tf:
Fill in the required variables in variables.tf based on your needs as example:
Authenticate to GCP
note
gcloud auth application-default
manages your active Application Default Credentials which provide a method to get credentials used in calling Google APIs.
Visit Google Cloud SDK documentation to learn more.
Initialize Terraform
Initialize your Terraform workspace, which will download and configure the providers.
Plan Terraform Run
check your Terraform plan before applying it with
if all is correct you will get a rendered execution plan
Run Terraform to Create a GKE Cluster
At the end of the terraform apply
, you should now have a working GKE cluster and kubectl context configured. So let's verify that in the next step!
Deploying NGINX Ingress Controller
We use NGINX Ingress Controller and need to deploy it via helm.
run the following commands:
after some minutes you should see the Public LoadBalancer IP of the Ingress via:
Example output shows a service with an external IP address that can be used to access the cluster.
as next step Setup Rasa X via Helm chart
more information you can find on the NGINX Ingress website or in the GKE Ingress Community Guide
Next Steps
- Setup Rasa X via Helm chart on the fresh created GKE Cluster.