file: use Recreate update strategy
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
This commit is contained in:
1 parent
51a6de0151
commit
b406def5f9
1 file changed
+7
-1
@@ -62,7 +62,13 @@ func (c *cluster) makeDeployment(mdsConfig *mdsConfig) *extensions.Deployment {
|
||||
Name: mdsConfig.ResourceName,
|
||||
Namespace: c.fs.Namespace,
|
||||
},
|
||||
Spec: extensions.DeploymentSpec{Template: podSpec, Replicas: &replicas},
|
||||
Spec: extensions.DeploymentSpec{
|
||||
Template: podSpec,
|
||||
Replicas: &replicas,
|
||||
Strategy: extensions.DeploymentStrategy{
|
||||
Type: extensions.RecreateDeploymentStrategyType,
|
||||
},
|
||||
},
|
||||
}
|
||||
k8sutil.SetOwnerRefs(c.context.Clientset, c.fs.Namespace, &d.ObjectMeta, c.ownerRefs)
|
||||
return d
|
||||
|
||||
Reference in new issue
Block a user