Share via


ReplicaSet Class

Definition

Represents a Kubernetes ReplicaSet resource in the apps/v1 API version.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class ReplicaSet : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type ReplicaSet = class
    inherit BaseKubernetesResource
Public NotInheritable Class ReplicaSet
Inherits BaseKubernetesResource
Inheritance
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

A ReplicaSet ensures that a specified number of pod replicas are running at any given time. It is commonly used to maintain the desired state of a workload by managing the lifecycle of pods.

Constructors

ReplicaSet()

Represents a Kubernetes ReplicaSet resource in the apps/v1 API version.

Properties

ApiVersion

Gets or sets the API version for the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Kind

Gets or sets the kind of the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Metadata

Gets or sets the metadata for the Kubernetes resource.

(Inherited from BaseKubernetesResource)
Spec

Gets or sets the specification that describes the desired behavior of the ReplicaSet resource.

Applies to