Difference between revisions of "Template:Provider kubectl conf"

From wikieduonline
Jump to navigation Jump to search
(Created page with " provider "kubectl" { apply_retry_count = 5 host = module.eks.cluster_endpoint cluster_ca_certificate = base64decode(module.eks.cluster_ce...")
 
Line 1: Line 1:
 
  provider "kubectl" {
 
  provider "kubectl" {
  [[apply_retry_count]]      = 5
 
 
   host                  = [[module.eks.cluster_endpoint]]
 
   host                  = [[module.eks.cluster_endpoint]]
 
   cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
 
   cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
 
   [[load_config_file]]      = false
 
   [[load_config_file]]      = false
 +
  [[apply_retry_count]]      = 5
 
   
 
   
 
   exec {
 
   exec {

Revision as of 09:47, 7 February 2024

provider "kubectl" {
 host                   = module.eks.cluster_endpoint
 cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
 load_config_file       = false
 apply_retry_count      = 5

 exec {
   api_version = "client.authentication.k8s.io/v1beta1"
   command     = "aws"
   # This requires the awscli to be installed locally where Terraform is executed
   args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
 }
}

Advertising: