txn2 / kubefwd

Bulk port forwarding Kubernetes services for local development.
https://imti.co/kubernetes-port-forwarding/
Apache License 2.0
3.8k stars 205 forks source link

aws eks: The config profile (prod/administrators) could not be found #265

Open dmitry-mightydevops opened 1 year ago

dmitry-mightydevops commented 1 year ago
✗  kg svc                               
NAME         TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)   AGE
deathstar    ClusterIP   172.20.180.218   <none>        80/TCP    35d
kubernetes   ClusterIP   172.20.0.1       <none>        443/TCP   81d

sudo kubefwd -c ~/.kube/config svc default

INFO[17:28:08]  _          _           __             _     
INFO[17:28:08] | | ___   _| |__   ___ / _|_      ____| |    
INFO[17:28:08] | |/ / | | | '_ \ / _ \ |_\ \ /\ / / _  |    
INFO[17:28:08] |   <| |_| | |_) |  __/  _|\ V  V / (_| |    
INFO[17:28:08] |_|\_\\__,_|_.__/ \___|_|   \_/\_/ \__,_|    
INFO[17:28:08]                                              
INFO[17:28:08] Version 1.22.5                               
INFO[17:28:08] https://github.com/txn2/kubefwd              
INFO[17:28:08]                                              
INFO[17:28:08] Press [Ctrl-C] to stop forwarding.           
INFO[17:28:08] 'cat /etc/hosts' to see all host entries.    
INFO[17:28:08] Loaded hosts file /etc/hosts                 
INFO[17:28:08] HostFile management: Original hosts backup already exists at /root/hosts.original 
INFO[17:28:08] Using namespace default from current context arn:aws:eks:us-east-1:xxx:cluster/prod-eks. 

The config profile (prod/administrators) could not be found
FATA[17:28:08] Error connecting to k8s cluster: Get "https://XXXX.gr7.us-east-1.eks.amazonaws.com/version": getting credentials: exec: executable aws failed with exit code 255 

is it possible to work with aws eks ?

without copying the following dirs into root