-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KubernetesClientException: JcaPEMKeyConverter is provided by BouncyCastle, an optional dependency. #4251
Comments
Ok I found the bug:java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
|
We need to add documentation about it. There is a pull request open that adds an FAQ about it #4237 . Could you please review this and see if it's okay? |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
I get the same issue when using spark-submit with k8s cluster and using the examples in the binary only distribution of spark directly downloaded from official spark repo. I am not sure where should these dependency be added? In the pom.xml for spark sources and doing a rebuild? |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
Hello, sorry for posting to the closed issue, but I have a related problem: Is there a way to use the fabric8 Kubernetes Client without BouncyCastle? I'm getting the following error:
Due to restrictions in my project, I cannot add BC as a direct dependency. |
@shawkins Thanks again. I am happy to confirm that removing the Bouncycastle library works when I upgrade the fabric8 client from 6.13.1 to 7.0-SNAPSHOT (built locally). |
Describe the bug
Exception in thread "main" io.fabric8.kubernetes.client.KubernetesClientException: JcaPEMKeyConverter is provided by BouncyCastle, an optional dependency. To use support for EC Keys you must explicitly add this dependency to classpath.
at io.fabric8.kubernetes.client.internal.CertUtils.handleECKey(CertUtils.java:164)
at io.fabric8.kubernetes.client.internal.CertUtils.loadKey(CertUtils.java:134)
at io.fabric8.kubernetes.client.internal.CertUtils.createKeyStore(CertUtils.java:112)
at io.fabric8.kubernetes.client.internal.CertUtils.createKeyStore(CertUtils.java:247)
at io.fabric8.kubernetes.client.internal.SSLUtils.keyManagers(SSLUtils.java:153)
at io.fabric8.kubernetes.client.internal.SSLUtils.keyManagers(SSLUtils.java:147)
at io.fabric8.kubernetes.client.utils.HttpClientUtils.applyCommonConfiguration(HttpClientUtils.java:204)
at io.fabric8.kubernetes.client.okhttp.OkHttpClientFactory.createHttpClient(OkHttpClientFactory.java:89)
at io.fabric8.kubernetes.client.utils.HttpClientUtils.createHttpClient(HttpClientUtils.java:164)
at io.fabric8.kubernetes.client.BaseClient.(BaseClient.java:48)
at io.fabric8.kubernetes.client.BaseClient.(BaseClient.java:40)
at io.fabric8.kubernetes.client.BaseKubernetesClient.(BaseKubernetesClient.java:151)
at io.fabric8.kubernetes.client.DefaultKubernetesClient.(DefaultKubernetesClient.java:34)
at com.yz.zk.K8sDemo.main(K8sDemo.java:17)
Fabric8 Kubernetes Client version
5.12.2
Steps to reproduce
I try to connect k3s by kubeconfig。
this is my kubectl command:
Expected behavior
public class K8sDemo {
}
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.22.3@latest
Environment
macOS
Fabric8 Kubernetes Client Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: