mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-05 05:41:11 +00:00
| .. | ||
| aks.tf | ||
| helm.tf | ||
| kafka.tf | ||
| provider.tf | ||
| README.md | ||
| redis.tf | ||
| sparkop.tf | ||
| storage.tf | ||
| variables.tf | ||
| vnet.tf | ||
Terraform config for Feast on Azure
This serves as a guide on how to deploy Feast on Azure. At the end of this guide, we will have provisioned:
- AKS cluster
- Feast services running on AKS
- Azure Cache (Redis) as online store
- Spark operator on AKS
- Kafka running on HDInsight.
Steps
- Create a tfvars file, e.g.
my.tfvars. A sample configuration is as below:
name_prefix = "feast09"
resource_group = "Feast" # pre-exisiting resource group
- Configure tf state backend, e.g.:
terraform {
backend "azurerm" {
storage_account_name = "<your storage account name>"
container_name = "<your container name>"
key = "<your blob name>"
}
}
- Use
terraform apply -var-file="my.tfvars"to deploy.
Note: to get the list of Kafka brokers needed for streaming ingestion, use
curl -sS -u <Kafka gateway username>:<Kafka gateway password> -G https://<Kafka cluster name>.azurehdinsight.net/api/v1/clusters/<Kafka cluster name>/services/KAFKA/components/KAFKA_BROKER | jq -r '["\(.host_components[].HostRoles.host_name):9092"] | join(",")'
where the Kafka gateway username is <name_prefix>-kafka-gateway, the Kafka cluster name is <name_prefix>-kafka, and the Kafka gateway password is a kubectl secret under the name feast-kafka-gateway.