Skip to content

Enable leader election by default with the Solr Operator #366

@HoustonPutman

Description

@HoustonPutman

Starting with Kubebuilder v3, leader election is a very easy option to enable.
This makes it very easy to ensure that there are not multiple solr-operator pods running at the same time, causing issues.

One thing that we need to make sure of when enabling this is that namespace-watching works well with leader election, since we allow one Solr Operator pod to watch a single namespace, or multiple namespaces. By default the leader election logic is scoped to the namespace that the Solr Operator pod is running in, but we can set it to make sure to leader elect based on the namespaces passed in via --watch-namespaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions