Class V1DeploymentSpec
DeploymentSpec is the specification of the desired behavior of the Deployment.
Inheritance
V1DeploymentSpec
Assembly: KubernetesClient.dll
Syntax
public record V1DeploymentSpec : IEquatable<V1DeploymentSpec>
Constructors
View Source
V1DeploymentSpec()
Declaration
public V1DeploymentSpec()
View Source
V1DeploymentSpec(V1DeploymentSpec)
Declaration
protected V1DeploymentSpec(V1DeploymentSpec original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
MinReadySeconds
Minimum number of seconds for which a newly created pod should be ready without
any of its container crashing, for it to be considered available. Defaults to 0
(pod will be considered available as soon as it is ready)
Declaration
[JsonPropertyName("minReadySeconds")]
public int? MinReadySeconds { get; set; }
Property Value
View Source
Paused
Indicates that the deployment is paused.
Declaration
[JsonPropertyName("paused")]
public bool? Paused { get; set; }
Property Value
View Source
ProgressDeadlineSeconds
The maximum time in seconds for a deployment to make progress before it is
considered to be failed. The deployment controller will continue to process
failed deployments and a condition with a ProgressDeadlineExceeded reason will
be surfaced in the deployment status. Note that progress will not be estimated
during the time a deployment is paused. Defaults to 600s.
Declaration
[JsonPropertyName("progressDeadlineSeconds")]
public int? ProgressDeadlineSeconds { get; set; }
Property Value
View Source
Replicas
Number of desired pods. This is a pointer to distinguish between explicit zero
and not specified. Defaults to 1.
Declaration
[JsonPropertyName("replicas")]
public int? Replicas { get; set; }
Property Value
View Source
RevisionHistoryLimit
The number of old ReplicaSets to retain to allow rollback. This is a pointer to
distinguish between explicit zero and not specified. Defaults to 10.
Declaration
[JsonPropertyName("revisionHistoryLimit")]
public int? RevisionHistoryLimit { get; set; }
Property Value
View Source
Selector
Label selector for pods. Existing ReplicaSets whose pods are selected by this
will be the ones affected by this deployment. It must match the pod template's
labels.
Declaration
[JsonPropertyName("selector")]
public V1LabelSelector Selector { get; set; }
Property Value
View Source
Strategy
The deployment strategy to use to replace existing pods with new ones.
Declaration
[JsonPropertyName("strategy")]
public V1DeploymentStrategy Strategy { get; set; }
Property Value
View Source
Template
Template describes the pods that will be created. The only allowed
template.spec.restartPolicy value is "Always".
Declaration
[JsonPropertyName("template")]
public V1PodTemplateSpec Template { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1DeploymentSpec?)
Declaration
public virtual bool Equals(V1DeploymentSpec? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1DeploymentSpec?, V1DeploymentSpec?)
Declaration
public static bool operator ==(V1DeploymentSpec? left, V1DeploymentSpec? right)
Parameters
Returns
View Source
operator !=(V1DeploymentSpec?, V1DeploymentSpec?)
Declaration
public static bool operator !=(V1DeploymentSpec? left, V1DeploymentSpec? right)
Parameters
Returns
Implements