io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.

Google Groups | Pradeep Ganachari | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    java.lang.IllegalStateException: when I create Kubernetes Job

    Google Groups | 1 year ago | Pradeep Ganachari
    io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.

    Root Cause Analysis

    1. javax.net.ssl.SSLPeerUnverifiedException

      Hostname kubernetes.default.svc not verified:* * certificate: sha1/pn3xC0EodJTjGo5zetEr8QSgnyo=* *DN: CN=kube-apiserver* subjectAltNames: [10.3.0.1, 10.22.42.243, kubernetes, kubernetes.default] could you please help me out to resolve this? On Fri, May 13, 2016 at 8:56 PM, James Strachan <james.s...@gmail.com> wrote: On 12 May 2016 at 11:14, Pradeep Ganachari <ganachar...@gmail.com> wrote: Hello, I am trying to create Kubernetes Job using following code. *client.extensions().jobs().inNamespace("aa-system").create(job);* with all necessary data filled in job. Getting following exception. FAILED: *java.lang.IllegalStateException: No adapter available for type:class io.fabric8.kubernetes.client.ExtensionsAPIGroupClient* java.lang.IllegalStateException: No adapter available for type:class io.fabric8.kubernetes.client.ExtensionsAPIGroupClient

      at io.fabric8.kubernetes.client.BaseClient.adapt()
    2. io.fabric8.kubernetes
      DefaultKubernetesClient.extensions
      1. io.fabric8.kubernetes.client.BaseClient.adapt(BaseClient.java:135)
      2. io.fabric8.kubernetes.client.DefaultKubernetesClient.extensions(DefaultKubernetesClient.java:214)
      2 frames