mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-17 23:13:46 +01:00
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:
committed by
Max Williams
parent
c17d17e2c2
commit
d79c8ab6f2
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user