diff --git a/spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientPodUtils.java b/spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientPodUtils.java index a87fd61409..c1edcf87b7 100644 --- a/spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientPodUtils.java +++ b/spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientPodUtils.java @@ -109,6 +109,9 @@ private V1Pod internalGetPod() { } catch (Throwable t) { if (failFast) { + if (t instanceof ApiException apiException) { + LOG.error("error reading pod : " + apiException.getResponseBody()); + } throw new RuntimeException(t); } if (t instanceof ApiException apiException) {