Read the series here: Back2Basics: Amazon EKS
Depending on your OS, select the installation method here: https://opentofu.org/docs/intro/install/
- Make necessary adjustment on the variables.
- Run
tofu init
to initialize the modules and other necessary resources. - Run
tofu plan
to check what will be created/deleted. - Run
tofu apply
to apply the changes. Typeyes
when asked to proceed.
aws eks update-kubeconfig --region $REGION --name $CLUSTER_NAME
# List all pods in all namespaces
kubectl get pods -A
# List all deployments in kube-system
kubectl get deployment -n kube-system
# List all daemonsets in kube-system
kubectl get daemonset -n kube-system
# List all nodes
kubectl get nodes
# Create a deployment
kubectl create deployment my-app --image nginx
# Scale the replicas of my-app deployment
kubectl scale deployment/my-app --replicas 2
# Check the pods
kubectl get pods
# Delete the deployment
kubectl delete deployment my-app