mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-10 03:03:33 +02:00
Add wait_nodes_max_tries to wait for nodes to be available before applying the kubernetes configurations (#187)
* Add wait_nodes_max_tries to wait for nodes to be available before applying the kubernetes configurations * Format variables.tf and aws_auth.tf * Fix template expansion for wait-nodes-ready.tpl * Ensuring that kubeconfig is created before its use * Cleanup wait-nodes-ready script * Simplify logic to retry application of kubernetes config if failed * Revert file permission change
This commit is contained in:
committed by
Max Williams
parent
cddac92757
commit
81706207fc
@@ -8,7 +8,7 @@ resource "null_resource" "update_config_map_aws_auth" {
|
||||
depends_on = ["aws_eks_cluster.this"]
|
||||
|
||||
provisioner "local-exec" {
|
||||
command = "kubectl apply -f ${var.config_output_path}config-map-aws-auth_${var.cluster_name}.yaml --kubeconfig ${var.config_output_path}kubeconfig_${var.cluster_name}"
|
||||
command = "for i in {1..5}; do kubectl apply -f ${var.config_output_path}config-map-aws-auth_${var.cluster_name}.yaml --kubeconfig ${var.config_output_path}kubeconfig_${var.cluster_name} && break || sleep 10; done"
|
||||
}
|
||||
|
||||
triggers {
|
||||
|
||||
Reference in New Issue
Block a user