elasticsearch-operator | manages elasticsearch clusters | Plugin library

 by   upmc-enterprises Go Version: v0.4.0 License: BSD-3-Clause

kandi X-RAY | elasticsearch-operator Summary

kandi X-RAY | elasticsearch-operator Summary

elasticsearch-operator is a Go library typically used in Plugin, Spark applications. elasticsearch-operator has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Built by UPMC Enterprises in Pittsburgh, PA.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              elasticsearch-operator has a low active ecosystem.
              It has 661 star(s) with 138 fork(s). There are 30 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 79 open issues and 95 have been closed. On average issues are closed in 58 days. There are 12 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of elasticsearch-operator is v0.4.0

            kandi-Quality Quality

              elasticsearch-operator has no bugs reported.

            kandi-Security Security

              elasticsearch-operator has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              elasticsearch-operator is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              elasticsearch-operator releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elasticsearch-operator
            Get all kandi verified functions for this library.

            elasticsearch-operator Key Features

            No Key Features are available at this moment for elasticsearch-operator.

            elasticsearch-operator Examples and Code Snippets

            No Code Snippets are available at this moment for elasticsearch-operator.

            Community Discussions

            Trending Discussions on elasticsearch-operator

            QUESTION

            How does statefulset and headless service works-K8s
            Asked 2018-Jun-16 at 22:30

            I understood that

            • StatefulSet - manages/maintains stable hostname, network ID and persistent storage.
            • HeadlessService - stable network ID you need to define a headless service for stateful applications

            FROM K8s Docs -> Sometimes you don’t need or want load-balancing and a single service IP. In this case, you can create “headless” services by specifying "None" for the cluster IP (.spec.clusterIP).

            My thoughts on "Statefull vs Stateless" Apps/components

            1. UI comes under stateless application/component because, it doesn't maintain any data. But it gets from DB and displays

            2. DB, Cache(Redis) are Statefull application/components,because it has to maintain data

            My Questions.

            1. Persistence storage in Apps - Why should I consider to deploy postgress (for example) as StatefulSet? I can define PVs and PVC in Deployement to store the data in PV. Even if pods restart, it will gets it PV, thus there is no lose of data.

            2. Network - Redis(for example) should deploy as StatefulSet, so that we can get unique "Network ID"/Name everytime even after restart of pods. For example; Redis-0, Redis-1 are in StatefulSet, I can define Redis-0 as master, so master name never changes. Now why should I consider Headless Service for StatefulSet apps? I can directly access/connect the PODs itself, right? What is the use of Headless Service?

            3. I heard about Operators, a best way to manage StatefulSet apps. I found some example below. Why those(or some other) are important to deploy as StatefulSet. For example, Prometheus or ElasticSearch; I can define PVs and PVC to store data without lose.

            Why/When should I care about StatefulSet and Headless Serivice?

            ...

            ANSWER

            Answered 2018-Jun-16 at 22:30

            Before trying to answer some of your questions I must add disclaimer: there are different ways to skin a cat. And since we are discussing StatefulSets here note that not all approaches are best suited for all stateful applications. In case that you need a single database pod with single PV, you could have one approach, if your api pod needs some shared and some separated PV then another and so on..

            Persistence storage in Apps - Why should I consider to deploy postgress (for example) as StatefulSet? I can define PVs and PVC in Deployement to store the data in PV.

            This hold true if all your pods are using same persistent volume claim across all replicas (and provisioner allows that). If you try to increase number of replicas based on Deployment all your pods will use the very same PVC. On the other hand, StatefulSet as defined in api documentation has volumeClaimTemplates allowing for each replica to have own generated PVC, securing separately provisioned PV for each pod in replica set.

            Now why should I consider Headless Service for StatefulSet apps?

            Because of ease of discovery. Again, you don't need to know how many replicas you have in Headless Service, checking service DNS you will get ALL replicas (caveat - that are up and running in that moment). You can do it manually, but in this case you rely on different mechanism of counting/keeping tabs on replicas (replicas are self registered to master for example). Here is nice example of pod discovery with nslookup that can shed some light on why headless can be a nice idea.

            Why those(or some other) are important to deploy as StatefulSet

            To my understanding, very Operators you listed are deployed using the Deployment themselves. They handle StatefulSets though, so lets consider ElasticSearch for example. If it was not deployed as StatefulSet you would end up with two pods targeting same PV (if provisioner allows it) and that would heavily mess up things. With StatefulSet each pod gets its very own persistent volume claim (from template) and consequently separate persistent volume from other ElasticSearch pods in same StatefulSet. This is just a tip of the iceberg since ElasticSearch is more complex for setup/handling and operators are helping with that.

            Why/When should I care about StatefulSet and Headless Serivice?

            • Stateful set you should use in any case where replicated pods need to have separate PV from each other (created from PVC template, and automatically provisioned).

            • Headless Service you should use in any case where you want to automatically discover all pods under the service as opposed to regular Service where you get ClusterIP instead. As an illustration from above mentioned example here is difference between DNS entries for Service (with ClusterIP) and Headless Service (without ClusterIP):

              • Standard service - you will get the clusterIP value:

            Source https://stackoverflow.com/questions/50891104

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install elasticsearch-operator

            To enable the snapshots create a bucket in S3, then apply the following IAM permissions to your EC2 instances replacing {!YOUR_BUCKET!} with the correct bucket name.
            To enable snapshots with GCS on GKE, create a bucket in GCS and bind the storage.admin role to the cluster service account replacing ${BUCKET} with your bucket name:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/upmc-enterprises/elasticsearch-operator.git

          • CLI

            gh repo clone upmc-enterprises/elasticsearch-operator

          • sshUrl

            git@github.com:upmc-enterprises/elasticsearch-operator.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link