Skip to content

Instantly share code, notes, and snippets.

@tojibon

tojibon/readme.md

Last active Nov 20, 2019
Embed
What would you like to do?
Installing AWS KubeCTL on Windows
  1. Visit https://aws.amazon.com/cli/ and install AWS CLI Client
  2. Visit https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-windows and install Kubernetes CLI Client
  3. 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
  1. Configure Amazon EKS (Elastic Kubernetes Service) - aws eks --region eu-central-1 update-kubeconfig --name phpfarmer-kube1
  2. Done! Let's see the services - kubectl get svc|kubectl get services
  3. List all pods in all namespaces - 'kubectl get pods --all-namespaces|kubectl get pods -n testing|kubectl get pods -n production'
  4. Describe a pod - kubectl describe pods phpfarmer-testing-569c58cff8-k6p2n -n testing
  5. Getting inside the app container - kubectl exec -it phpfarmer-testing-569c58cff8-k6p2n -n testing bash
  6. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment