Fix terraform config formatting

This commit is contained in:
Dalton Hubble 2018-02-10 15:18:27 -08:00
parent 2fa7dac247
commit 82a616c70b
4 changed files with 9 additions and 11 deletions

View File

@ -146,11 +146,11 @@ resource "aws_security_group_rule" "worker-flannel-self" {
resource "aws_security_group_rule" "worker-node-exporter" { resource "aws_security_group_rule" "worker-node-exporter" {
security_group_id = "${aws_security_group.worker.id}" security_group_id = "${aws_security_group.worker.id}"
type = "ingress" type = "ingress"
protocol = "tcp" protocol = "tcp"
from_port = 9100 from_port = 9100
to_port = 9100 to_port = 9100
self = true self = true
} }
resource "aws_security_group_rule" "worker-kubelet" { resource "aws_security_group_rule" "worker-kubelet" {

View File

@ -82,4 +82,3 @@ variable "cluster_domain_suffix" {
type = "string" type = "string"
default = "cluster.local" default = "cluster.local"
} }

View File

@ -48,7 +48,7 @@ resource "google_compute_instance" "controllers" {
} }
can_ip_forward = true can_ip_forward = true
tags = ["${var.cluster_name}-controller"] tags = ["${var.cluster_name}-controller"]
} }
# Controller Container Linux Config # Controller Container Linux Config

View File

@ -14,7 +14,7 @@ resource "google_compute_firewall" "allow-ssh" {
} }
source_ranges = ["0.0.0.0/0"] source_ranges = ["0.0.0.0/0"]
target_tags = ["${var.cluster_name}-controller", "${var.cluster_name}-worker"] target_tags = ["${var.cluster_name}-controller", "${var.cluster_name}-worker"]
} }
resource "google_compute_firewall" "allow-apiserver" { resource "google_compute_firewall" "allow-apiserver" {
@ -27,10 +27,9 @@ resource "google_compute_firewall" "allow-apiserver" {
} }
source_ranges = ["0.0.0.0/0"] source_ranges = ["0.0.0.0/0"]
target_tags = ["${var.cluster_name}-controller"] target_tags = ["${var.cluster_name}-controller"]
} }
resource "google_compute_firewall" "allow-ingress" { resource "google_compute_firewall" "allow-ingress" {
name = "${var.cluster_name}-allow-ingress" name = "${var.cluster_name}-allow-ingress"
network = "${google_compute_network.network.name}" network = "${google_compute_network.network.name}"
@ -41,7 +40,7 @@ resource "google_compute_firewall" "allow-ingress" {
} }
source_ranges = ["0.0.0.0/0"] source_ranges = ["0.0.0.0/0"]
target_tags = ["${var.cluster_name}-worker"] target_tags = ["${var.cluster_name}-worker"]
} }
resource "google_compute_firewall" "internal-etcd" { resource "google_compute_firewall" "internal-etcd" {