Skip to content

Commit 7c5c6cf

Browse files
committed
Use PodManagementPolicy: appsv1.ParallelPodManagement for the neutronapi 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.
1 parent 8d6ce42 commit 7c5c6cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/neutronapi/deployment.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ func Deployment(
134134
Selector: &metav1.LabelSelector{
135135
MatchLabels: labels,
136136
},
137-
Replicas: instance.Spec.Replicas,
137+
PodManagementPolicy: appsv1.ParallelPodManagement,
138+
Replicas: instance.Spec.Replicas,
138139
Template: corev1.PodTemplateSpec{
139140
ObjectMeta: metav1.ObjectMeta{
140141
Annotations: annotations,

0 commit comments

Comments
 (0)