Skip to content

Instantly share code, notes, and snippets.

@nicusX

nicusX/k8snthw-elb.tf

Last active Aug 9, 2016
Embed
What would you like to do?
resource "aws_elb" "kubernetes_api" {
name = "kube-api"
instances = ["${aws_instance.controller.*.id}"]
subnets = ["${aws_subnet.kubernetes.id}"]
cross_zone_load_balancing = false
security_groups = ["${aws_security_group.kubernetes_api.id}"]
listener {
lb_port = 6443
instance_port = 6443
lb_protocol = "TCP"
instance_protocol = "TCP"
}
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 15
target = "HTTP:8080/healthz"
interval = 30
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment