Low Orbit Flux Logo 2 F

aws eks list-clusters –region us-east-1

aws eks update-kubeconfig –region us-east-1 –name test1

/home/user1/.kube/config

kubectl needs to be within 1 minor version of kubernetes cluster

curl -LO https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl OR curl -O https://s3.us-west-2.amazonaws.com/amazon-eks/1.30.0/2024-05-12/bin/linux/amd64/kubectl

kubectl version –client

kubectl config current-context kubectl get svc

https://github.com/eksctl-io/eksctl/releases/ curl -sLO https://github.com/eksctl-io/eksctl/releases/download/v0.187.0/eksctl_Linux_amd64.tar.gz tar xvfz eksctl_Linux_amd64.tar.gz

eksctl info

vi cluster.yaml

apiVersion: eksctl.io/v1alpha5 kind: ClusterConfig

metadata: name: basic-cluster region: us-east-1

eksctl create cluster -f cluster.yaml

EKS Terraform

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_cluster https://developer.hashicorp.com/terraform/tutorials/kubernetes/eks

git clone https://github.com/hashicorp/learn-terraform-provision-eks-cluster

1522 terraform init 1523 terraform plan 1524 terraform apply

aws eks –region $(terraform output -raw region) update-kubeconfig
–name $(terraform output -raw cluster_name)

kubectl cluster-info kubectl get nodes

terraform destroy