- Visit https://aws.amazon.com/cli/ and install AWS CLI Client
- Visit https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-windows and install Kubernetes CLI Client
- Configure AWS CLI -
aws configure
AWS Access Key ID [None]: AKIAJXXXXXXEWDNXXXXX
AWS Secret Access Key [None]: 2EqCQXXXXXuK3LXXXXXtZXMGNXXXXXVCHd0XXXXX
Default region name [None]: eu-central-1
Default output format [None]: JSON
- Configure Amazon EKS (Elastic Kubernetes Service) -
aws eks --region eu-central-1 update-kubeconfig --name phpfarmer-kube1
- Done! Let's see the services -
kubectl get svc|kubectl get services
- List all pods in all namespaces - 'kubectl get pods --all-namespaces|kubectl get pods -n testing|kubectl get pods -n production'
- Describe a pod -
kubectl describe pods phpfarmer-testing-569c58cff8-k6p2n -n testing
- Getting inside the app container -
kubectl exec -it phpfarmer-testing-569c58cff8-k6p2n -n testing bash
- More at - https://kubernetes.io/docs/reference/kubectl/cheatsheet/
[default]
region = eu-central-1
output = json
[default]
aws_access_key_id = AKIAJXXXXXXEWDNXXXXX
aws_secret_access_key = 2EqCQXXXXXuK3LXXXXXtZXMGNXXXXXVCHd0XXXXX
aws eks --region region update-kubeconfig --name cluster_name
aws eks --region eu-central-1 update-kubeconfig --name phpfarmer-kube1