mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-05 13:51:12 +00:00
| .. | ||
| dataproc.tf | ||
| feast.tf | ||
| gke.tf | ||
| iam.tf | ||
| online_store.tf | ||
| provider.tf | ||
| README.md | ||
| variables.tf | ||
Terraform config for feast on GCP
This serves as a guide on how to deploy Feast on GCP. At the end of this guide, we will have provisioned:
- GKE cluster
- Feast services running on GKE
- Google Memorystore (Redis) as online store
- Dataproc cluster
- Kafka running on GKE, exposed to the dataproc cluster via internal load balancer.
Steps
- Create a tfvars file, e.g.
my.tfvars. A sample configuration is as below:
gcp_project_name = "kf-feast"
name_prefix = "feast-0-8"
region = "asia-east1"
gke_machine_type = "n1-standard-2"
network = "default"
subnetwork = "default"
dataproc_staging_bucket = "kf-feast-dataproc-staging-test"
- Configure tf state backend, e.g.:
terraform {
backend "gcs" {
bucket = "<your bucket name>"
prefix = "terraform/feast"
}
}
- Use
terraform apply -var-file="my.tfvars"to deploy.