Giter Site home page Giter Site logo

Comments (3)

mikkeloscar avatar mikkeloscar commented on August 22, 2024

The es-operator creates a service for each ElasticsearchDataSet (eds) that you define. This is mostly intended for the operator to communicate with Elasticsearch API, but ofc you can also use it for ingress (I think). We currently don't allow you to e.g. change this to a type: LoadBalancer service, but you could just deploy your own service which targets the EDS with the same label selectors.

Your config snippet suggest that you both create an ALB for ingress AND an ELB for service type LoadBalancer. I don't know if this is intentional or what purpose it serves, but if an ingress is enough then you can create an ingress resource that points to the service created by es-operator.

I hope this clarifies it a bit.

from es-operator.

AyWa avatar AyWa commented on August 22, 2024

First of all, thank you a lot for your quick response 👍

So far I was trying to overwrite the service and creating the ingress ( add my own label selectors), but knowing that I can not change type: LoadBalancer I will then try to follow your advice:

  • deploy normally the EDS
  • deploy my ingress targeting a NodePort service with the existing label selectors

My previous configuration was wrong (using only ingress or service loadbalancer)

Anyway, I will comment tomorrow if I succeed or not to deploy my ingress.

from es-operator.

AyWa avatar AyWa commented on August 22, 2024

I think we can close that. I succeed to create my ingress and a service that target the EDS

If I can suggest something, is that the annotations defined in the EDS should be set on the stateful set.
In fact my issue was coming from that. (I did not realize at first but kubectl get pods -n es --show-labels help me to realize it).
I guess annotation should have been set in spec and not top level metadata annotations

So so far, I use the application=elasticsearch to target the EDS

Thx again

from es-operator.

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.