Code Monkey home page Code Monkey logo

Comments (8)

pires avatar pires commented on May 16, 2024

Did you try this image and it didn't work? At first I thought this was a limitation but after doing a little research on the issue I am under the impression this just works!

from kubernetes-elasticsearch-cluster.

feelobot avatar feelobot commented on May 16, 2024

yeah I tried using this image and i haven't seen anywhere in the code where this is referenced so im not sure why it doesn't work but in the ES container logs its trying to connect to the wrong cluster_domain. This could possibly be a kubernetes bug? anyway i think we are just going to change the cluster domain back to default

from kubernetes-elasticsearch-cluster.

pires avatar pires commented on May 16, 2024

@jimmidyson is there any limitation with the discovery plug-in (inherited by fabric8 Kubernetes API)?

@feelobot let's keep this open until Jimmi gets back with an answer.

from kubernetes-elasticsearch-cluster.

jimmidyson avatar jimmidyson commented on May 16, 2024

There's nothing hard coded in the plugin. Can you share logs? Could be a kubernetes bug in DNS resolution. I'd always suggest using the short DNS name rather than FQDN as the configuration cluster domain will be added as a search suffix in all pods in the cluster if configured.

from kubernetes-elasticsearch-cluster.

pires avatar pires commented on May 16, 2024

@jimmidyson good catch, it may actually be the container DNS misbehaving. @feelobot care to copy the container /etc/resolv.conf contents and paste them here?

from kubernetes-elasticsearch-cluster.

feelobot avatar feelobot commented on May 16, 2024

resolv.conf

/ # cat /etc/resolv.conf
nameserver 127.0.0.1 # added by go-dnsmasq
# nameserver 10.100.0.10
# nameserver 172.16.0.2
search default.svc.cluster.local svc.cluster.local cluster.local ec2.internal
options ndots:5

from kubernetes-elasticsearch-cluster.

feelobot avatar feelobot commented on May 16, 2024

also getting this now that ive switched to using cluster.local

[2016-02-08 23:12:14,663][WARN ][io.fabric8.elasticsearch.discovery.kubernetes.KubernetesUnicastHostsProvider] [Forbush Man] Exception caught during discovery: Error executing: GET at: https://kubernetes.default.svc/api/v1/namespaces/default/endpoints/elasticsearch-discovery. Cause: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
io.fabric8.kubernetes.client.KubernetesClientException: Error executing: GET at: https://kubernetes.default.svc/api/v1/namespaces/default/endpoints/elasticsearch-discovery. Cause: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

from kubernetes-elasticsearch-cluster.

pires avatar pires commented on May 16, 2024

search default.svc.cluster.local svc.cluster.local cluster.local ec2.internal means you're using cluster.local. Try it with a different domain and let me know here.

Regarding the second error, it seems your Kubernetes install doesn't provide tokens to pods.

from kubernetes-elasticsearch-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.