-
Notifications
You must be signed in to change notification settings - Fork 5
/
i.tf
92 lines (79 loc) · 1.78 KB
/
i.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
85
86
87
88
89
90
91
92
# Provider
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
region = "${var.region}"
}
variable "ansibleFilter" {
default = "k8s"
}
# K8s Variables
variable "master_count" {
default = 1
}
variable "master_volume_size" { default = 25 }
variable "master_instance_type" { default = "m3.medium" }
variable "master_ansibleNodeType" { default = "master" }
variable "worker_count" {
default = 1
}
variable "worker_volume_size" { default = 50 }
variable "worker_instance_type" { default = "m3.medium" }
variable "worker_ansibleNodeType" { default = "worker" }
variable "edge_count" {
default = 1
}
variable "edge_ansibleNodeType" { default = "edge" }
# Other variables
variable "access_key" {}
variable "secret_key" {}
variable "ssh_key_name" {}
variable "ssh_user_name" {}
variable "ssh_private_key_path" {}
variable "edge_eip_allocation_id" {}
# variable "master_eip_allocation_id" {}
variable "vpc_cidr" {
default = "10.0.0.0/16"
}
variable "control_cidr" {
default = "0.0.0.0/0"
}
variable "k8s_service_ip" {
# first in service_ip_range
default = "10.3.0.1"
}
variable "dns_service_ip" {
default = "10.3.0.10"
}
variable "pod_network" {
default = "10.2.0.0/16"
}
variable "service_ip_range" {
default = "10.3.0.0/24"
}
variable "cluster_domain" {
default = "cluster.local"
}
variable "region" {
description = "The region to which you want to deploy"
default = "cn-north-1"
}
variable "amis" {
type = "map"
default = {
# coreOS
cn-north-1 = "ami-ca5c8da7"
}
}
variable "kube_image" {
default = "quay.io/coreos/hyperkube"
}
variable "kube_version" {
default = "v1.7.3_coreos.0"
}
variable "pod_infra_container_image" {
default = "registry.aliyuncs.com/archon/pause-amd64:3.0"
}
variable "flannel_version" {
default = "v0.7.1"
}