Difference between revisions of "Deploy EKS cluster using Terraform"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
 
  [[kubectl get nodes]]
 
  [[kubectl get nodes]]
 
  The connection to the server localhost:[[8080]] was refused - did you specify the right host or port?
 
  The connection to the server localhost:[[8080]] was refused - did you specify the right host or port?
 +
 +
Configure it:
 +
[[aws eks]] --region $(terraform output -raw region) update-kubeconfig --name $(terraform output -raw cluster_name)
  
 
  [[Example: terraform show (grep resource) in EKS]]
 
  [[Example: terraform show (grep resource) in EKS]]

Revision as of 21:41, 1 December 2021

https://learn.hashicorp.com/tutorials/terraform/eks


Example

git clone https://github.com/hashicorp/learn-terraform-provision-eks-cluster
cd learn-terraform-provision-eks-cluster
terraform init #It may take several minutes
terraform apply
(Terraform EKS apply output)


kubectl get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?

Configure it:
aws eks --region $(terraform output -raw region) update-kubeconfig --name $(terraform output -raw cluster_name)
Example: terraform show (grep resource) in EKS

Related

See also

Advertising: