Wait cluster responsive (#639)

* wait for cluster to respond before creating auth config map

* adds changelog entry

* fixup tf format

* fixup kubernetes required version

* fixup missing local for kubeconfig_filename

* combine wait for cluster into provisioner on cluster; change status check to /healthz on endpoint

* fix: make kubernetes provider version more permissive
This commit is contained in:
Shaun Cutts
2020-01-07 06:28:56 -05:00
committed by Max Williams
parent c17d17e2c2
commit d79c8ab6f2
4 changed files with 14 additions and 6 deletions

View File

@@ -31,6 +31,11 @@ resource "aws_eks_cluster" "this" {
aws_iam_role_policy_attachment.cluster_AmazonEKSServicePolicy,
aws_cloudwatch_log_group.this
]
provisioner "local-exec" {
command = <<EOT
until curl -k ${aws_eks_cluster.this[0].endpoint}/healthz >/dev/null; do sleep 4; done
EOT
}
}
resource "aws_security_group" "cluster" {