-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: (IAC-276) Added documentation in CONFIG-VARS.md
- Loading branch information
Showing
5 changed files
with
157 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# !NOTE! - These are only a subset of CONFIG-VARS.md provided as examples. | ||
# Customize this file to add any variables from 'CONFIG-VARS.md' whose default values you | ||
# want to change. | ||
|
||
# **************** REQUIRED VARIABLES **************** | ||
# These required variables' values MUST be provided by the User | ||
prefix = "<prefix-value>" # this is a prefix that you assign for the resources to be created | ||
location = "<azure-location-value>" # e.g., "eastus2" | ||
# **************** REQUIRED VARIABLES **************** | ||
|
||
# !NOTE! - Without specifying your CIDR block access rules, ingress traffic | ||
# to your cluster will be blocked by default. In a SCIM environment, | ||
# the AzureActiveDirectory service tag must be granted access to port | ||
# 443/HTTPS for the ingress IP address. | ||
|
||
# ************** RECOMMENDED VARIABLES *************** | ||
default_public_access_cidrs = [] # e.g., ["123.45.6.89/32"] | ||
ssh_public_key = "~/.ssh/id_rsa.pub" | ||
# ************** RECOMMENDED VARIABLES *************** | ||
|
||
# Tags can be specified matching your tagging strategy. | ||
tags = {} # for example: { "owner|email" = "<you>@<domain>.<com>", "key1" = "value1", "key2" = "value2" } | ||
|
||
# Postgres config - By having this entry a database server is created. If you do not | ||
# need an external database server remove the 'postgres_servers' | ||
# block below. | ||
postgres_servers = { | ||
default = {}, | ||
} | ||
|
||
## Azure Application Gateway with Azure Web Application Firewall (WAF) | ||
create_app_gateway = true | ||
|
||
app_gateway_config = { | ||
backend_host_name = "<your Application Gateway host name>" ## leave empty to use Azure public DNS assigned host name | ||
backend_trusted_root_certificate = [{ | ||
name = "<rootcert-name>" | ||
data = "<path-to-rootcert>" ## Required if key_vault_secret_id not set | ||
key_vault_secret_id = "<key-vault-scret-id>" ## Required if data not set | ||
}] | ||
ssl_certificate = [{ | ||
name = "<listener-cert-name>" | ||
data = "<path-to-listener-cert>" ## Required if key_vault_secret_id not set | ||
password = "<password>" ## Required when data is set | ||
key_vault_secret_id = "<key-vault-scret-id>" ## Required if data not set | ||
}] | ||
identity_ids = ["<identity-id-with-access-to-key-vault>"] ## Required if key_vault_secret_id is set above. | ||
## Example identity_ids value: `/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentityValue` | ||
backend_address_pool_fqdn = ["<your-ingress-nginx-loadBalancer-hostname>"] ## Required to setup the backend pool. This list only accepts FQDN. | ||
} | ||
|
||
waf_policy = "<path-to-WAF-policy-json-file>" ## Required to configure WAF with Application Gateway | ||
|
||
# AKS config | ||
kubernetes_version = "1.26" | ||
default_nodepool_min_nodes = 2 | ||
default_nodepool_vm_type = "Standard_D8s_v4" | ||
|
||
# AKS Node Pools config | ||
node_pools = { | ||
cas = { | ||
"machine_type" = "Standard_E16s_v3" | ||
"os_disk_size" = 200 | ||
"min_nodes" = 1 | ||
"max_nodes" = 1 | ||
"max_pods" = 110 | ||
"node_taints" = ["workload.sas.com/class=cas:NoSchedule"] | ||
"node_labels" = { | ||
"workload.sas.com/class" = "cas" | ||
} | ||
}, | ||
compute = { | ||
"machine_type" = "Standard_E16s_v3" | ||
"os_disk_size" = 200 | ||
"min_nodes" = 1 | ||
"max_nodes" = 1 | ||
"max_pods" = 110 | ||
"node_taints" = ["workload.sas.com/class=compute:NoSchedule"] | ||
"node_labels" = { | ||
"workload.sas.com/class" = "compute" | ||
"launcher.sas.com/prepullImage" = "sas-programming-environment" | ||
} | ||
}, | ||
stateless = { | ||
"machine_type" = "Standard_D16s_v3" | ||
"os_disk_size" = 200 | ||
"min_nodes" = 1 | ||
"max_nodes" = 2 | ||
"max_pods" = 110 | ||
"node_taints" = ["workload.sas.com/class=stateless:NoSchedule"] | ||
"node_labels" = { | ||
"workload.sas.com/class" = "stateless" | ||
} | ||
}, | ||
stateful = { | ||
"machine_type" = "Standard_D8s_v3" | ||
"os_disk_size" = 200 | ||
"min_nodes" = 1 | ||
"max_nodes" = 3 | ||
"max_pods" = 110 | ||
"node_taints" = ["workload.sas.com/class=stateful:NoSchedule"] | ||
"node_labels" = { | ||
"workload.sas.com/class" = "stateful" | ||
} | ||
} | ||
} | ||
|
||
# Jump Server | ||
create_jump_public_ip = true | ||
jump_vm_admin = "jumpuser" | ||
jump_vm_machine_type = "Standard_B2s" | ||
|
||
# Storage for SAS Viya CAS/Compute | ||
storage_type = "standard" | ||
# required ONLY when storage_type is "standard" to create NFS Server VM | ||
create_nfs_public_ip = false | ||
nfs_vm_admin = "nfsuser" | ||
nfs_vm_machine_type = "Standard_D8s_v4" | ||
nfs_raid_disk_size = 128 | ||
nfs_raid_disk_type = "Standard_LRS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters