Skip to content

Commit

Permalink
Defaulting Cosmos DB provisioning to false and added variable in tfvars
Browse files Browse the repository at this point in the history
Signed-off-by: kkrishTa <Kamalakara_T@infosys.com>
  • Loading branch information
kkrishTa authored and lianhao committed Jan 22, 2025
1 parent 2ae6510 commit 01c92c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cloud-service-provider/azure/aks/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ terraform init

By default, 1-node cluster is created which is suitable for running the OPEA application. See `variables.tf` and `opea-<application-name>.tfvars` if you want to tune the cluster properties, e.g., number of nodes, instance types or disk size.

## Cosmos DB

By default Cosmos DB will not be provisioned. If you want Cosmos DB as part of your resource provisioning, update `is_cosmosdb_required` property present in `opea-<application-name>.tfvars` to `true`.

## Persistent Volume Claim

OPEA needs a volume where to store the model. For that we need to create Kubernetes Persistent Volume Claim (PVC). OPEA requires `ReadWriteMany` option since multiple pods needs access to the storage and they can be on different nodes. On AKS, only Azure File Service supports `ReadWriteMany`. Thus, each OPEA application below uses the file `aks-azfs-csi-pvc.yaml` to create PVC in its namespace.
Expand All @@ -36,7 +40,6 @@ OPEA needs a volume where to store the model. For that we need to create Kuberne

Use the commands below to create AKS cluster.
User has to input their Azure subscription id while running the following commands when prompted.
User should also input their decision to install Cosmos DB as part of the installation when prompted.

```bash
terraform plan --var-file opea-chatqna.tfvars -out opea-chatqna.plan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_pool_type = "Spot" # cheaper
os_disk_size_gb = 50
location = "eastus"
kubernetes_version = "1.30"
is_cosmosdb_required = false
1 change: 1 addition & 0 deletions cloud-service-provider/azure/aks/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ variable "throughput" {
variable "is_cosmosdb_required" {
type = bool
description = "Is Cosmos DB required for your deployment? [true/false]"
default = false
}

0 comments on commit 01c92c1

Please sign in to comment.