java
java copied to clipboard
java client is not taking the updated ca.crt/token and error out
trafficstars
Describe the bug updated ca.crt/token are not considered by the java k8s client and errors out java.util.concurrent.ExecutionException: io.kubernetes.client.openapi.ApiException: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
Client Version 17.0.2
Kubernetes Version 1.21.12
Java Version openjdk 17.0.12 2024-07-16 LTS
To Reproduce update the k8s ca.crt and token with the new certificates.
Expected behavior Java client should consider the latest ca.crt and token and K8S API access should succeed
Server (please complete the following information):
- OS: Linux
- Environment : Container
- Cloud : Vanilla K8S