kubeman icon indicating copy to clipboard operation
kubeman copied to clipboard

Lacking pod command execution privileges

Open CapKenR opened this issue 5 years ago • 2 comments

I'm looking at "Service Reachability From IngressGateway" (after looking through the other Istio Ingress Recipes before that one) and for each of the services I selected, it says "Lacking pod command execution privileges". Looking at the debug output, I see the following.

Error: Command failed: kubectl get services --context ucp_test-ucp.lab.capstonec.net:6443_admin -o jsonpath='{range .items[*]}{"\n"}{.metadata.namespace}{" "}{.metadata.name}{" "}{.spec.clusterIP}{" "}{range .spec.ports[*]}{.port}{" "}{end}{end}'  --all-namespaces
error: a resource cannot be retrieved by name across all namespaces


    at ChildProcess.exithandler (child_process.js:299)
    at ChildProcess.emit (events.js:182)
    at maybeClose (internal/child_process.js:962)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251)
renderer.js:1212 kubectl is not accessible

If I run the above kubectl command from the command line, I get the same error. If I remove the jsonpath output, I get the list of all services in all namespaces.

CapKenR avatar Nov 05 '19 03:11 CapKenR

I've since gotten the same message from other recipes with the same message in the debug console.

CapKenR avatar Nov 05 '19 03:11 CapKenR

Thanks for finding this. I think the generated kubectl command for some of these recipes might have an issue. Will look into it.

uk000 avatar Nov 07 '19 04:11 uk000