Skip to content

Commit 77f3156

Browse files
authored
[Feat] Add full terraform.tfvars variable list (#10)
* Add full terraform.tfvars variable list * Fix variable casing for 2 variables * Add newlines to ends of files
1 parent 920feb3 commit 77f3156

File tree

10 files changed

+132
-36
lines changed

10 files changed

+132
-36
lines changed

aks/examples/cnpack/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
1. Update the `terraform.tfvars` file to not be prompted for variable input
2222
- Add `cluster_name`
2323
- Add the IDs of the members or groups who should have cluster access to the variable `admin_group_object_ids`. The GUID input can be retrieved in the Azure portal by searching for the desired user or group
24-
- Add `fluentbit-workspace-name`. This will create Azure Log Analytics Workspace with the specified name.
25-
- Add `prometheus-name`. This will create Azure Monitor Workspace with the specified name.
24+
- Add `fluentbit_workspace_name`. This will create Azure Log Analytics Workspace with the specified name.
25+
- Add `prometheus_name`. This will create Azure Monitor Workspace with the specified name.
2626

2727
2. Run `terraform plan` and validate that the output is correct
2828

@@ -76,14 +76,14 @@ If it is needed to get the value of `log_analytics_workspace_primary_shared_key`
7676
| Name | Description | Type | Default | Required |
7777
|------|-------------|------|---------|:--------:|
7878
| <a name="input_admin_group_object_ids"></a> [admin\_group\_object\_ids](#input\_admin\_group\_object\_ids) | (Required) A list of Object IDs (GUIDs) of Azure Active Directory Groups which should have Owner Role on the Cluster. <br> This is not the email address of the group, the GUID can be found in the Azure panel by searching for the AD Group<br> NOTE: You will need Azure "Owner" role (not "Contributor") to attach an AD role to the Kubernetes cluster. | `list(any)` | n/a | yes |
79-
| <a name="input_az_monitor-user-managed-id"></a> [az\_monitor-user-managed-id](#input\_az\_monitor-user-managed-id) | The user managed identity to *create* for use with the Azure monitor-- at this time this does not accept existing user or system managed identity | `string` | `"tf-holoscan-identity"` | no |
79+
| <a name="input_az_monitor_user_managed_id"></a> [az\_monitor-user-managed-id](#input\_az\_monitor-user-managed-id) | The user managed identity to *create* for use with the Azure monitor-- at this time this does not accept existing user or system managed identity | `string` | `"tf-holoscan-identity"` | no |
8080
| <a name="input_azure_log_analytics_retention_in_days"></a> [azure\_log\_analytics\_retention\_in\_days](#input\_azure\_log\_analytics\_retention\_in\_days) | The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730 | `number` | `30` | no |
8181
| <a name="input_azure_log_analytics_sku"></a> [azure\_log\_analytics\_sku](#input\_azure\_log\_analytics\_sku) | Specifies the SKU of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, CapacityReservation, and PerGB2018. Defaults to PerGB2018 | `string` | `"PerGB2018"` | no |
8282
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Name of the cluster | `string` | n/a | yes |
83-
| <a name="input_fluentbit-workspace-name"></a> [fluentbit-workspace-name](#input\_fluentbit-workspace-name) | Name of the Azure Log Workspace for Fluentbit to be created | `string` | n/a | yes |
83+
| <a name="input_fluentbit_workspace_name"></a> [fluentbit_workspace_name](#input\_fluentbit_workspace_name) | Name of the Azure Log Workspace for Fluentbit to be created | `string` | n/a | yes |
8484
| <a name="input_fluentbit_enabled"></a> [fluentbit\_enabled](#input\_fluentbit\_enabled) | Set to true to enable, false to disable | `bool` | `true` | no |
8585
| <a name="input_location"></a> [location](#input\_location) | The region to create resources in. This can be filed out in the terraform.tfvars file in this directory | `any` | n/a | yes |
86-
| <a name="input_prometheus-name"></a> [prometheus-name](#input\_prometheus-name) | The name of the Azure Monitor Workspace for Prometheus | `string` | n/a | yes |
86+
| <a name="input_prometheus_name"></a> [prometheus_name](#input\_prometheus_name) | The name of the Azure Monitor Workspace for Prometheus | `string` | n/a | yes |
8787
| <a name="input_prometheus_resource_group_name"></a> [prometheus\_resource\_group\_name](#input\_prometheus\_resource\_group\_name) | Name of the Prometheus resource group | `string` | `"prometheus-rg"` | no |
8888

8989
## Outputs

aks/examples/cnpack/azure-fluentbit.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Fluentbit Config
66

77
// Create an Azure Log Analytics Workspace to send Fluentbit Logs to
88
resource "azurerm_log_analytics_workspace" "cnpack-fluentbit-workspace" {
9-
name = var.fluentbit-workspace-name
9+
name = var.fluentbit_workspace_name
1010
location = module.holoscan-ready-aks.location
1111
resource_group_name = module.holoscan-ready-aks.resource_group_name
1212
sku = var.azure_log_analytics_sku
@@ -15,7 +15,7 @@ resource "azurerm_log_analytics_workspace" "cnpack-fluentbit-workspace" {
1515

1616
data "azurerm_log_analytics_workspace" "fluent" {
1717
depends_on = [azurerm_log_analytics_workspace.cnpack-fluentbit-workspace]
18-
name = var.fluentbit-workspace-name
18+
name = var.fluentbit_workspace_name
1919
resource_group_name = module.holoscan-ready-aks.resource_group_name
2020
}
2121

aks/examples/cnpack/azure-prometheus.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data "azurerm_resource_group" "prometheus" {
3232
resource "azapi_resource" "prometheus-cnpack" {
3333
depends_on = [module.holoscan-ready-aks]
3434
type = "microsoft.monitor/accounts@2023-04-03"
35-
name = var.prometheus-name
35+
name = var.prometheus_name
3636
schema_validation_enabled = false
3737
parent_id = data.azurerm_resource_group.prometheus.id
3838
location = data.azurerm_resource_group.prometheus.location
@@ -43,7 +43,7 @@ resource "azapi_resource" "prometheus-cnpack" {
4343
// Get Data on Azure Monitor Workspace for Prometheus
4444
data "azapi_resource" "prometheus-cnpack" {
4545
depends_on = [module.holoscan-ready-aks, azapi_resource.prometheus-cnpack]
46-
name = var.prometheus-name
46+
name = var.prometheus_name
4747
type = "microsoft.monitor/accounts@2023-04-03"
4848
parent_id = data.azurerm_resource_group.prometheus.id
4949
response_export_values = ["*"]
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
// Cluster Variables
5-
# cluster_name = "cnpack"
6-
# location = "West US 2"
7-
# admin_group_object_ids = []
4+
# Sample tfvars file. Uncomment out values to use
5+
# Do not commit this file to Git with sensitive values
86

9-
// Fluentbit/Azure Log Configuration Variables
10-
# fluentbit-workspace-name = "fluentbit-test"
11-
12-
// Prometheus/Azure Monitor Configuration Variables
13-
# prometheus-name = "cnpack-prometheus"
7+
# admin_group_object_ids = ""
8+
# az_monitor_user_managed_id = "tf-holoscan-identity"
9+
# azure_log_analytics_retention_in_days = 30
10+
# azure_log_analytics_sku = "PerGB2018"
11+
# cluster_name = ""
12+
# fluentbit_workspace_name = ""
13+
# fluentbit_enabled = true
14+
# location = ""
15+
# prometheus_name = ""
16+
# prometheus_resource_group_name = "prometheus-rg"

aks/examples/cnpack/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ variable "location" {
99
description = "The region to create resources in. This can be filed out in the terraform.tfvars file in this directory"
1010
}
1111

12-
variable "az_monitor-user-managed-id" {
12+
variable "az_monitor_user_managed_id" {
1313
type = string
1414
default = "tf-holoscan-identity"
1515
description = "The user managed identity to *create* for use with the Azure monitor-- at this time this does not accept existing user or system managed identity"
@@ -43,7 +43,7 @@ variable "fluentbit_enabled" {
4343
description = "Set to true to enable, false to disable"
4444
}
4545

46-
variable "fluentbit-workspace-name" {
46+
variable "fluentbit_workspace_name" {
4747
description = "Name of the Azure Log Workspace for Fluentbit to be created"
4848
type = string
4949
}
@@ -65,7 +65,7 @@ variable "prometheus_resource_group_name" {
6565
default = "prometheus-rg"
6666
description = "Name of the Prometheus resource group"
6767
}
68-
variable "prometheus-name" {
68+
variable "prometheus_name" {
6969
type = string
7070
description = "The name of the Azure Monitor Workspace for Prometheus"
7171
}

aks/terraform.tfvars

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# cluster_name = "nvidia-aks-cluster"
5-
# admin_group_object_ids = []
6-
# location = "West US 2"
4+
# Sample tfvars file. Uncomment out values to use
5+
# Do not commit this file to Git with sensitive values
6+
7+
# admin_group_object_ids = ""
8+
# cluster_name = "holoscan-cluster"
9+
# cpu_machine_type = "Standard_D16_v5"
10+
# cpu_node_pool_count = 1
11+
# cpu_node_pool_disk_size = 100
12+
# cpu_node_pool_max_count = 5
13+
# cpu_node_pool_min_count = 1
14+
# cpu_os_sku = "Ubuntu"
15+
# existing_resource_group_name = ""
16+
# gpu_machine_type = "Standard_NC6s_v3"
17+
# gpu_node_pool_count = 2
18+
# gpu_node_pool_disk_size = 100
19+
# gpu_node_pool_max_count = 5
20+
# gpu_node_pool_min_count = 2
21+
# gpu_operator_version = "v23.3.2"
22+
# gpu_os_sku = "Ubuntu"
23+
# kubernetes_version = "1.26.3"
24+
# location = ""
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# cluster_name = "cnpack-cluster"
4+
# Sample tfvars file. Uncomment out values to use
5+
# Do not commit this file to Git with sensitive values
6+
7+
# amp_enabled = true
8+
# cluster_name = ""
9+
# common_name = "cluster.local"
10+
# fluentbit_enabled = true
11+
# metrics_server_enabled = true
12+
# pca_enabled = true
13+
# prom_adapter_enabled = true

eks/terraform.tfvars

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,53 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Sample tfvars file. Uncomment out values to use
5+
# Do not commit this file to Git with sensitive values
6+
57
# cluster_name = "holoscan-cluster"
68
# region = "us-west-2"
79

810
# Optional: If deploying into an existing VPC, use the following variable
9-
# existing_vpc_details = {vpc_id = "", subnet_ids = ["", ""]}
11+
# additional_node_security_groups_rules = {}
12+
# additional_security_group_ids = []
13+
# additional_user_data = ""
14+
# aws_profile = "development"
15+
# cidr_block = "10.0.0.0/16"
16+
# cluster_name = ""
17+
# cluster_version = "1.26"
18+
# cpu_instance_type = "t2.xlarge"
19+
# cpu_node_pool_additional_user_data = ""
20+
# cpu_node_pool_delete_on_termination = true
21+
# cpu_node_pool_root_disk_size_gb = 512
22+
# cpu_node_pool_root_volume_type = "gp2"
23+
# desired_count_cpu_nodes = "1"
24+
# desired_count_gpu_nodes = "2"
25+
# enable_dns_hostnames = true
26+
# enable_dns_support = true
27+
# enable_nat_gateway = true
28+
# existing_vpc_details = ""
29+
# gpu_ami_id = ""
30+
# gpu_instance_type = "p3.2xlarge"
31+
# gpu_node_pool_additional_user_data = ""
32+
# gpu_node_pool_delete_on_termination = true
33+
# gpu_node_pool_root_disk_size_gb = 512
34+
# gpu_node_pool_root_volume_type = "gp2"
35+
# gpu_operator_driver_version = "535.54.03"
36+
# gpu_operator_namespace = "gpu-operator"
37+
# gpu_operator_version = "v23.3.2"
38+
# max_cpu_nodes = "2"
39+
# max_gpu_nodes = "5"
40+
# min_cpu_nodes = "0"
41+
# min_gpu_nodes = "2"
42+
# private_subnets = [
43+
# "10.0.1.0/24",
44+
# "10.0.2.0/24",
45+
# "10.0.3.0/24"
46+
# ]
47+
# public_subnets = [
48+
# "10.0.4.0/24",
49+
# "10.0.5.0/24",
50+
# "10.0.6.0/24"
51+
# ]
52+
# region = "us-west-2"
53+
# single_nat_gateway = false
54+
# ssh_key = ""
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
cluster_name = ""
5-
gke_managed_prometheus_enabled = true
6-
node_zones = ["us-west1-b"]
7-
project_id = ""
8-
region = "us-west1"
4+
# Sample tfvars file. Uncomment out values to use
5+
# Do not commit this file to Git with sensitive values
6+
7+
# cluster_name = ""
8+
# gke_managed_prometheus_enabled = true
9+
# node_zones = ["us-west1-b"]
10+
# project_id = ""
11+
# region = "us-west1"

gke/terraform.tfvars

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# Do not commit this file to Git if you add sensitive values
5-
# project_id = ""
6-
# cluster_name = ""
7-
# region = "us-west1"
8-
# node_zones = ["us-west1-b"]
4+
# Sample tfvars file. Uncomment out values to use
5+
# Do not commit this file to Git with sensitive values
6+
7+
# cluster_name = ""
8+
# cpu_instance_type = "n1-standard-4"
9+
# cpu_max_node_count = "5"
10+
# cpu_min_node_count = "1"
11+
# gpu_count = "1"
12+
# gpu_instance_type = "n1-standard-4"
13+
# gpu_max_node_count = "5"
14+
# gpu_min_node_count = "2"
15+
# gpu_operator_driver_version = "535.54.03"
16+
# gpu_operator_namespace = "gpu-operator"
17+
# gpu_operator_version = "v23.3.2"
18+
# gpu_type = "nvidia-tesla-v100"
19+
# node_zones = ""
20+
# num_cpu_nodes = 1
21+
# num_gpu_nodes = 2
22+
# project_id = ""
23+
# region = ""
24+
# release_channel = "REGULAR"
25+
# use_cpu_spot_instances = false
26+
# use_gpu_spot_instances = false

0 commit comments

Comments
 (0)