Skip to main content

EKSCTL

eksctl create

eksctl create cluster \
--nodegroup-name eks-nodegroup \
--region eu-west-2 \
--name eks-cluster \
--version 1.14 \
--node-type t2.micro \
--nodes 2 \
--nodes-min 1 \
--nodes-max 3 \
--managed
  • eksctl is a simple CLI tool for creating clusters on EKS - Amazon's new managed Kubernetes service for EC2. It is written in Go, and uses CloudFormation.

kubectl get nodes

  • The kubectl get nodes command returns a list of all nodes in the current Kubernetes namespace. The output includes the node name, status, roles, version, and internal IP address for each node.
kubectl get nodes

kubectl get pods

  • The kubectl get pods command returns a list of all pods in the current Kubernetes namespace. The output includes the pod name, status, and any associated containers.
kubectl get pods

kubectl get svc

  • The kubectl get svc command returns a list of all services in the current Kubernetes namespace. The output includes the service name, type, cluster IP, external IP (if applicable), and port(s).
kubectl get svc

kubectl get deployments

  • The kubectl get deployments command returns a list of all deployments in the current Kubernetes namespace. The output includes the deployment name, number of desired pods, number of currently running pods, and deployment status.
kubectl get deployments

kubectl get all

  • The kubectl get all command returns a list of all resources in the current Kubernetes namespace. The output includes the resource type, name, and status of each resource.
kubectl get all

eksctl delete

  • The eksctl delete cluster command deletes the cluster, including the VPC, subnets, and other related resources.
eksctl delete cluster --name eks-cluster

eksctl udpate cluster

  • The eksctl update cluster command updates the cluster configuration, including the Kubernetes version, node group configuration, and cluster add-ons.
eksctl update cluster --name eks-cluster --region eu-west-2 --version 1.14

eksctl scale nodegroup

  • The eksctl scale nodegroup command scales the node group, including the number of nodes, node type, and desired capacity.
eksctl scale nodegroup --cluster eks-cluster --name eks-nodegroup --nodes 3 --nodes-min 1 --nodes-max 4