Skip to content

Commit

Permalink
Merge pull request #542 from weirdwiz/backport-deployment
Browse files Browse the repository at this point in the history
Bug 2248850: exporter: change deployment strategy to Recreate
  • Loading branch information
travisn authored Nov 27, 2023
2 parents 0154538 + af2c87c commit 8dad108
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/operator/ceph/cluster/nodedaemon/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ func (r *ReconcileNode) createOrUpdateCephExporter(node corev1.Node, tolerations
if cephVersion != nil {
controller.AddCephVersionLabelToDeployment(*cephVersion, deploy)
}

// wait for previous exporter pod to be deleted, before creating a new one
// to avoid fighting for the same socket file
deploy.Spec.Strategy.Type = appsv1.RecreateDeploymentStrategyType

var terminationGracePeriodSeconds int64 = 2
deploy.Spec.Template = corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit 8dad108

Please sign in to comment.