-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
84 lines (72 loc) · 1.97 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Providers ----------------------------------------------------------------------------------------
provider "intersight" {
apikey = var.apikey
secretkey = var.secretkey
endpoint = var.endpoint
}
# Modules ------------------------------------------------------------------------------------------
module "iks_cluster" {
source = "terraform-cisco-modules/iks/intersight"
version = "2.3.0"
ip_pool = {
use_existing = true
name = "ESXi01-IKS-IP-POOL"
}
sysconfig = {
use_existing = true
name = "APO-FSO-IKS-NODE-OS-CONFIG"
}
k8s_network = {
use_existing = true
name = "APO-FSO-IKS-NETWORK-CIDR-DEMO"
}
# Version policy.
versionPolicy = {
useExisting = true
policyName = "APO-FSO-K8S-VERSION-DEMO"
}
tr_policy = {
use_existing = false
create_new = false
name = "trusted-registry"
}
runtime_policy = {
use_existing = false
create_new = false
# name = "runtime"
# http_proxy_hostname = "t"
# http_proxy_port = 80
# http_proxy_protocol = "http"
# http_proxy_username = null
# http_proxy_password = null
# https_proxy_hostname = "t"
# https_proxy_port = 8080
# https_proxy_protocol = "https"
# https_proxy_username = null
# https_proxy_password = null
}
# Infra Config Policy Information.
infraConfigPolicy = {
use_existing = true
policyName = "ESXi01-VM-INFRA-CONFIG-2231"
}
instance_type = {
use_existing = true
name = "APO-FSO-VM-INSTANCE-TYPE-IKS-DEMO"
}
# Cluster information.
cluster = {
name = var.cluster_name
action = var.action_type
wait_for_completion = false
worker_nodes = 2
load_balancers = 1
worker_max = 3
control_nodes = 1
ssh_user = "iksadmin"
ssh_public_key = var.sshkey
}
# Organization and Tags.
organization = var.organization
tags = var.tags
}