Show / Hide Table of Contents

Class V1DeploymentSpec

DeploymentSpec is the specification of the desired behavior of the Deployment.

Inheritance
object
V1DeploymentSpec
Implements
IEquatable<V1DeploymentSpec>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
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
Type Name Description
V1DeploymentSpec original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
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
Type Description
int?
View Source

Paused

Indicates that the deployment is paused.

Declaration
[JsonPropertyName("paused")]
public bool? Paused { get; set; }
Property Value
Type Description
bool?
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
Type Description
int?
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
Type Description
int?
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
Type Description
int?
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
Type Description
V1LabelSelector
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
Type Description
V1DeploymentStrategy
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
Type Description
V1PodTemplateSpec

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1DeploymentSpec?)

Declaration
public virtual bool Equals(V1DeploymentSpec? other)
Parameters
Type Name Description
V1DeploymentSpec other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1DeploymentSpec?, V1DeploymentSpec?)

Declaration
public static bool operator ==(V1DeploymentSpec? left, V1DeploymentSpec? right)
Parameters
Type Name Description
V1DeploymentSpec left
V1DeploymentSpec right
Returns
Type Description
bool
View Source

operator !=(V1DeploymentSpec?, V1DeploymentSpec?)

Declaration
public static bool operator !=(V1DeploymentSpec? left, V1DeploymentSpec? right)
Parameters
Type Name Description
V1DeploymentSpec left
V1DeploymentSpec right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX