Skip to content

Commit

Permalink
Cleaned up Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
arehmandev committed Mar 8, 2017
1 parent 089c54a commit 7e1fe81
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ provider "aws" {
module "tls" {
source = "./modules/tls"
internal-tld = "${var.internal-tld}"
k8s-serviceip = "${var.dns-service-ip}"
k8s-serviceip = "${var.k8s-service-ip}"
adminregion = "${var.adminregion}"
capem = "${var.capem}"
cakey = "${var.cakey}"
Expand Down
2 changes: 1 addition & 1 deletion modules/s3/Files/master_role_arn.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
arn:aws:iam::219614587848:role/master_role

2 changes: 1 addition & 1 deletion modules/s3/Files/root_arn.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
arn:aws:iam::219614587848:root

2 changes: 1 addition & 1 deletion modules/s3/Files/worker_role_arn.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
arn:aws:iam::219614587848:role/worker_role

3 changes: 2 additions & 1 deletion terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ cluster-name = "terrakube"
## Template variables
cluster-domain = "cluster.local"
dns-service-ip = "10.3.0.10"
service-cluster-ip-range = "10.3.0.0/24"
k8s-service-ip = "10.3.0.1"
kubernetes_image = "quay.io/coreos/hyperkube:v1.5.2_coreos.0"
pod-ip-range = "10.2.0.0/16"
service-cluster-ip-range = "10.3.0.0/24"

# AMI info
ownerid = "595879546273"
Expand Down
14 changes: 10 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,19 @@ variable "cluster-domain" {

variable "dns-service-ip" {
description = "The VIP (Virtual IP) address of the cluster DNS service"
default = "10.3.0.10"
}

variable "service-cluster-ip-range" {
description = "The CIDR network to use for service cluster VIPs (Virtual IPs)"
default = "10.3.0.0/24"
}

variable "k8s-service-ip" {
description = "The VIP (Virtual IP) address of the Kubernetes API Service. This must be set to the first IP in service-cluster range"
default = "10.3.0.1"
}

variable "kubernetes_image" {
description = "The docker kubernetes image we are using"
default = "quay.io/coreos/hyperkube:v1.5.2_coreos.0"
Expand All @@ -46,10 +56,6 @@ variable "pod-ip-range" {
description = "The CIDR network to use for pod IPs"
}

variable "service-cluster-ip-range" {
description = "The CIDR network to use for service cluster VIPs (Virtual IPs)"
}

# AMI info

variable "ownerid" {
Expand Down

0 comments on commit 7e1fe81

Please sign in to comment.