You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,16 +26,16 @@ This module creates all of the resources required for IKS. Those resources are
26
26
27
27
Reusing prebuilt policies is supported. Each object block has a variable for doing this.
28
28
Set
29
-
```
29
+
```hcl
30
30
use_existing = true
31
31
```
32
32
If existing objects are not available this module will create those objects for you where required.
33
33
Set
34
-
```
34
+
```hcl
35
35
use_existing = false
36
36
```
37
37
For the runtime_policies and the Trusted registry, if you DO NOT want to use this policy in your cluster build you need to set the following variable combination in EACH object block.
38
-
```
38
+
```hcl
39
39
use_existing = false
40
40
create_new = false
41
41
```
@@ -51,166 +51,183 @@ See the above Examples folder for more information.
# Kubernetes Cluster Profile Adjust the values as needed.
67
+
cluster = {
68
+
name = "new_cluster"
69
+
action = "Unassign"
70
+
wait_for_completion = false
71
+
worker_nodes = 5
72
+
load_balancers = 5
73
+
worker_max = 20
74
+
control_nodes = 1
75
+
ssh_user = var.ssh_user
76
+
ssh_public_key = var.ssh_key
77
+
}
78
+
79
+
80
+
# IP Pool Information (To create new change "use_existing" to 'false' uncomment variables and modify them to meet your needs.)
64
81
ip_pool = {
65
-
use_existing = true
66
-
name = "ippool"
67
-
ip_starting_address = "10.139.120.220"
68
-
ip_pool_size = "20"
69
-
ip_netmask = "255.255.255.0"
70
-
ip_gateway = "10.139.120.1"
71
-
dns_servers = ["10.101.128.15"]
82
+
use_existing = true
83
+
name = "10-239-21-0"
84
+
# ip_starting_address = "10.239.21.220"
85
+
# ip_pool_size = "20"
86
+
# ip_netmask = "255.255.255.0"
87
+
# ip_gateway = "10.239.21.1"
88
+
# dns_servers = ["10.101.128.15","10.101.128.16"]
72
89
}
73
-
90
+
91
+
# Sysconfig Policy (UI Reference NODE OS Configuration) (To create new change "use_existing" to 'false' uncomment variables and modify them to meet your needs.)
74
92
sysconfig = {
75
93
use_existing = true
76
-
name = "New"
77
-
domain_name = "rich.ciscolabs.com"
78
-
timezone = "America/New_York"
79
-
ntp_servers = ["10.101.128.15"]
80
-
dns_servers = ["10.101.128.15"]
94
+
name = "richfield"
95
+
# domain_name = "rich.ciscolabs.com"
96
+
# timezone = "America/New_York"
97
+
# ntp_servers = ["10.101.128.15"]
98
+
# dns_servers = ["10.101.128.15"]
81
99
}
82
-
100
+
101
+
# Kubernetes Network CIDR (To create new change "use_existing" to 'false' uncomment variables and modify them to meet your needs.)
83
102
k8s_network = {
84
103
use_existing = true
85
-
name = "default"
104
+
name = "default"
86
105
87
-
######### Below are the default settings. Change if needed. #########
88
-
pod_cidr = "100.65.0.0/16"
89
-
service_cidr = "100.64.0.0/24"
90
-
cni = "Calico"
106
+
######### Below are the default settings. Change if needed. #########
107
+
# pod_cidr = "100.65.0.0/16"
108
+
# service_cidr = "100.64.0.0/24"
109
+
# cni = "Calico"
91
110
}
92
-
# Version policy
93
-
version_policy = {
94
-
use_existing = true
95
-
name = "1.19.5"
96
-
version = "1.19.5"
97
-
}
98
-
99
-
# tr_policy_name = "test"
100
-
tr_policy = {
111
+
# Version policy (To create new change "use_existing" to 'false' uncomment variables and modify them to meet your needs.)
112
+
version_policy = {
101
113
use_existing = true
102
-
name = "triggermesh-trusted-registry"
114
+
name = "1.19.15"
115
+
# version = "1.19.15"
116
+
}
117
+
# Trusted Registry Policy (To create new change "use_existing" to 'false' and set "create_new' to 'true' uncomment variables and modify them to meet your needs.)
118
+
# Set both variables to 'false' if this policy is not needed.
119
+
tr_policy = {
120
+
use_existing = false
121
+
create_new = false
122
+
name = "trusted-registry"
103
123
}
124
+
# Runtime Policy (To create new change "use_existing" to 'false' and set "create_new' to 'true' uncomment variables and modify them to meet your needs.)
125
+
# Set both variables to 'false' if this policy is not needed.
104
126
runtime_policy = {
105
-
use_existing = true
106
-
name = "runtime"
107
-
http_proxy_hostname = "proxy.com"
108
-
http_proxy_port = 80
109
-
http_proxy_protocol = "http"
110
-
http_proxy_username = null
111
-
http_proxy_password = null
112
-
https_proxy_hostname = "proxy.com"
113
-
https_proxy_port = 8080
114
-
https_proxy_protocol = "https"
115
-
https_proxy_username = null
116
-
https_proxy_password = null
127
+
use_existing = false
128
+
create_new = false
129
+
# name = "runtime"
130
+
# http_proxy_hostname = "t"
131
+
# http_proxy_port = 80
132
+
# http_proxy_protocol = "http"
133
+
# http_proxy_username = null
134
+
# http_proxy_password = null
135
+
# https_proxy_hostname = "t"
136
+
# https_proxy_port = 8080
137
+
# https_proxy_protocol = "https"
138
+
# https_proxy_username = null
139
+
# https_proxy_password = null
117
140
}
118
-
119
-
# Infra Config Policy Information
120
-
infra_config_policy = {
141
+
142
+
# Infrastructure Configuration Policy (To create new change "use_existing" to 'false' and uncomment variables and modify them to meet your needs.)
143
+
infraConfigPolicy = {
121
144
use_existing = true
122
-
name = "vcenter"
123
-
vc_target_name = "marvel-vcsa.rich.ciscolabs.com"
124
-
vc_portgroups = ["panther|iks|tme"]
125
-
vc_datastore = "iks"
126
-
vc_cluster = "tchalla"
127
-
vc_resource_pool = ""
128
-
vc_password = var.vc_password
145
+
# platformType = "iwe"
146
+
# targetName = "falcon"
147
+
policyName = "dev"
148
+
# description = "Test Policy"
149
+
# interfaces = ["iwe-guests"]
150
+
# vcTargetName = optional(string)
151
+
# vcClusterName = optional(string)
152
+
# vcDatastoreName = optional(string)
153
+
# vcResourcePoolName = optional(string)
154
+
# vcPassword = optional(string)
129
155
}
130
156
131
-
addons_list = [{
132
-
addon_policy_name = "dashboard"
133
-
addon = "kubernetes-dashboard"
134
-
description = "K8s Dashboard Policy"
135
-
upgrade_strategy = "AlwaysReinstall"
136
-
install_strategy = "InstallOnly"
137
-
},
157
+
# Addon Profile and Policies (To create new change "createNew" to 'true' and uncomment variables and modify them to meet your needs.)
158
+
# This is an Optional item. Comment or remove to not use. Multiple addons can be configured.
| <aname="input_infra_config_policy_name"></a> [infra\_config\_policy\_name](#input\_infra\_config\_policy\_name)| Name of existing infra config policy (if it exists) to be used. |`string`|`""`| no |
0 commit comments