Skip to content

Instantly share code, notes, and snippets.

@nicusX
Last active August 9, 2016 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicusX/9d87b1c99723c7fabafb6efa1bd4a14f to your computer and use it in GitHub Desktop.
Save nicusX/9d87b1c99723c7fabafb6efa1bd4a14f to your computer and use it in GitHub Desktop.
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