Skip to content

Commit

Permalink
Use PodManagementPolicy: appsv1.ParallelPodManagement for the neutron…
Browse files Browse the repository at this point in the history
…api statefulsets

With the default PodManagementPolicy: OrderedReadyPodManagement the statefulset controller will only progress pods when the previous/current pod is ready or terminated.

When service configuration changes while the pod is starting and the new configuration requires e.g. additional volume mounts the initial pod will never reach ready and therefore an update won't happen.

With ParallelPodManagement the statefulset controller will not wait for pods to be ready or complete termination.
  • Loading branch information
son-vyas committed Aug 29, 2024
1 parent 8d6ce42 commit 7c5c6cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/neutronapi/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ func Deployment(
Selector: &metav1.LabelSelector{
MatchLabels: labels,
},
Replicas: instance.Spec.Replicas,
PodManagementPolicy: appsv1.ParallelPodManagement,
Replicas: instance.Spec.Replicas,
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Annotations: annotations,
Expand Down

0 comments on commit 7c5c6cf

Please sign in to comment.