Skip to content

Commit 8bf260e

Browse files
authored
Merge pull request #315 from sassoftware/pr-pscloud-244
feat: adding example tfvars for multizone deployment (PSCLOUD-244)
1 parent 6eaa557 commit 8bf260e

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# !NOTE! - These are only a subset of CONFIG-VARS.md provided for sample.
2+
# Customize this file to add any variables from 'CONFIG-VARS.md' that you want
3+
# to change their default values.
4+
5+
# **************** REQUIRED VARIABLES ****************
6+
# These required variables' values MUST be provided by the User
7+
prefix = "<prefix-value>"
8+
location = "<gcp-zone-or-region>" # e.g., "us-east1-b"
9+
project = "<gcp-project-id>"
10+
service_account_keyfile = "<service-account-json-file>"
11+
#
12+
# **************** REQUIRED VARIABLES ****************
13+
14+
# **************** RECOMMENDED VARIABLES ****************
15+
default_public_access_cidrs = [] # e.g., ["123.45.6.89/32"]
16+
ssh_public_key = "~/.ssh/id_rsa.pub"
17+
# **************** RECOMMENDED VARIABLES ****************
18+
19+
# add labels to the created resources
20+
tags = {} # e.g., { "key1" = "value1", "key2" = "value2" }
21+
22+
# Postgres config - By having this entry a database server is created. If you do not
23+
# need an external database server remove the 'postgres_servers'
24+
# block below.
25+
postgres_servers = {
26+
default = {},
27+
}
28+
29+
# GKE config
30+
kubernetes_version = "1.32"
31+
default_nodepool_min_nodes = 2
32+
default_nodepool_vm_type = "n2-highmem-8"
33+
34+
# Node Pools config
35+
node_pools = {
36+
cas = {
37+
"vm_type" = "n2-highmem-16"
38+
"os_disk_size" = 200
39+
"min_nodes" = 2
40+
"max_nodes" = 3
41+
"node_taints" = ["workload.sas.com/class=cas:NoSchedule"]
42+
"node_labels" = {
43+
"workload.sas.com/class" = "cas"
44+
}
45+
"local_ssd_count" = 2
46+
"accelerator_count" = 0
47+
"accelerator_type" = ""
48+
},
49+
compute = {
50+
"vm_type" = "n2-highmem-4"
51+
"os_disk_size" = 200
52+
"min_nodes" = 2
53+
"max_nodes" = 3
54+
"node_taints" = ["workload.sas.com/class=compute:NoSchedule"]
55+
"node_labels" = {
56+
"workload.sas.com/class" = "compute"
57+
"launcher.sas.com/prepullImage" = "sas-programming-environment"
58+
}
59+
"local_ssd_count" = 1
60+
"accelerator_count" = 0
61+
"accelerator_type" = ""
62+
},
63+
stateless = {
64+
"vm_type" = "n2-highmem-4"
65+
"os_disk_size" = 200
66+
"min_nodes" = 2
67+
"max_nodes" = 4
68+
"node_taints" = ["workload.sas.com/class=stateless:NoSchedule"]
69+
"node_labels" = {
70+
"workload.sas.com/class" = "stateless"
71+
}
72+
"local_ssd_count" = 0
73+
"accelerator_count" = 0
74+
"accelerator_type" = ""
75+
},
76+
stateful = {
77+
"vm_type" = "n2-highmem-4"
78+
"os_disk_size" = 200
79+
"min_nodes" = 2
80+
"max_nodes" = 4
81+
"node_taints" = ["workload.sas.com/class=stateful:NoSchedule"]
82+
"node_labels" = {
83+
"workload.sas.com/class" = "stateful"
84+
}
85+
"local_ssd_count" = 0
86+
"accelerator_count" = 0
87+
"accelerator_type" = ""
88+
}
89+
}
90+
# Jump Box
91+
create_jump_public_ip = true
92+
jump_vm_admin = "jumpuser"
93+
94+
# Storage for Viya Compute Services
95+
# Supported storage_type values
96+
# "standard" - Custom managed NFS Server VM and disks
97+
# "ha" - Google Filestore or Google NetApp Volumes
98+
storage_type = "ha"
99+
storage_type_backend = "netapp" # "filestore" is the default, use "netapp" to create Google NetApp Volumes
100+
101+
# GKE cluster control plane configuration
102+
regional = true # e.g., true for regional (multi-zone) control plane, false for zonal
103+
104+
# Default node pool zone locations (comma-separated string)
105+
default_nodepool_locations = "" # e.g., "us-east1-b,us-east1-c,us-east1-d"
106+
107+
# Additional node pool zone locations (comma-separated string)
108+
nodepools_locations = "" # e.g., "us-east1-b,us-east1-c,us-east1-d"
109+

0 commit comments

Comments
 (0)