I always get "Kubernetes Request Error: Forbidden" from Kubernetes (Services)
已回答
I'm using IntelliJ IDEA Ultimate 2019.3.4 with Kubernetes Plugin 193.6911.31 (2020-04-02).
The plugin seem to recognize my ~/.kube/config since my cluster name appear on the Kubernetes service window.
The kubectl command from the shell works, so I'm sure the ~/.kube/config is funtioning. This is a ~/.kube/config to connect to a AWS EKS cluster so the setup is maybe different from a "regular" k8s cluster. The config is created following https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html so it contains a section like this:
So I wonder if there is any way to troubleshoot this. Like can I see what command is the Kubernetes plugins trying to execute to get the list of pods?
请先登录再写评论。
In Help > Debug Log settings I added
#com.intellij.kubernetes
And now in ~/Library/Logs/IntelliJIdea2019.3/idea.log I can see
Ok I've fixed the problem by just giving the full path to aws cli executable in ~/.kube/config