Skip to content

[BUG] Mass pod restarts when controller restarts or leader changes #1089

@davekonopka

Description

@davekonopka

Describe the bug
I'm using Reloader to restart ArgoCD Rollouts pods for configmap and secrets changes. Whenever the controller pod restarts it seems to think all secrets & configmaps have changed triggering reloads of all app pods in all namespaces.

To Reproduce

I have the following annotations on apps:

reloader.stakater.com/auto: "true"

I restart the leader controller pod the second pod takes over and then immediately recognizes changes on secrets and configmaps for all apps. It leads to rolling restarts for lots of apps.

Expected behavior
If secrets and configmaps have not changed I wouldn't expect controller restarts or leader changes to trigger mass app restarts.

Environment

  • Operator Version: v1.2.0
  • Helm chart Version: v1.2.0
  • Kubernetes Version: v1.32.9

Additional context
Add any other context about the problem here.

Chart values:

reloader:
  isArgoRollouts: true
  reloadOnCreate: true
  reloadOnDelete: true
  syncAfterRestart: true
  reloadStrategy: annotations
  enableHA: true
  deployment:
    replicas: 2
  podDisruptionBudget:
    enabled: true
    minAvailable: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions