java icon indicating copy to clipboard operation
java copied to clipboard

list listPodForAllNamespaces error

Open luca-ma opened this issue 1 year ago • 5 comments
trafficstars

Describe the bug Hi, I'm using your example https://github.com/kubernetes-client/java/blob/master/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/Example.java to get all Pod in a K8s cluster.

CoreV1Api.listPodForAllNamespaces return a 401 response.

Could you suggest how to configure the client to correctly access the cluster? thanks in advance luca

Client Version 13.0.0

Kubernetes Version 1.29

Java Version java 11

luca-ma avatar May 08 '24 13:05 luca-ma