How to print HTTP request contents using KubernetesClient java client

10/24/2019

I am running the following code from inside a pod and adding annotation. I want to print the actual http call that KubernetesClient is making. Is there any way I can enable debugging?

KubernetesClient kubernetesClient = new DefaultKubernetesClient();

kubernetesClient.pods()
                .inNamespace(namespace)
                .withName(podName)
                .edit()
                .editMetadata()
                .addToAnnotations(annotationKey, annotationValue)
                .endMetadata()
                .done();
-- user2426785
java
kubernetes

0 Answers