Struct k8s_openapi::api::apps::v1::DeploymentStrategy
source · [−]pub struct DeploymentStrategy {
pub rolling_update: Option<RollingUpdateDeployment>,
pub type_: Option<String>,
}
Expand description
DeploymentStrategy describes how to replace existing pods with new ones.
Fields
rolling_update: Option<RollingUpdateDeployment>
Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.
type_: Option<String>
Type of deployment. Can be “Recreate” or “RollingUpdate”. Default is RollingUpdate.
Possible enum values:
"Recreate"
Kill all existing pods before creating new ones."RollingUpdate"
Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one.
Trait Implementations
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DeploymentStrategy
impl Send for DeploymentStrategy
impl Sync for DeploymentStrategy
impl Unpin for DeploymentStrategy
impl UnwindSafe for DeploymentStrategy
Blanket Implementations
Mutably borrows from an owned value. Read more