Skip to content

Pods restarting without any change to OpenSearchCluster CR #642

@saketmht

Description

@saketmht

When I am applying the OpenSearch CLuster CR for the first time, the sts and the corresponding pods are created. But after the pods are all up, the pods then tend to restart even when I have made no changes to OpenSearchCluster CR.

It seems the sts revision is updated which is weird because there was no change to the CR. After comparing the newer and older revision, the difference seems to be this annotation in the sts/pods banzaicloud.com/last-applied.

I couldn't find the code where this annotation was being added to the sts. In any case, this unnecessary restart should be fixed as it causes the shard to re-allocate twice, the cluster health fluctuates etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting-for-reporterWaiting for response/feedback from issue author

    Type

    No type

    Projects

    Status

    📦 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions