Package org.cdk8s.plus20
Class DaemonSet
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus20.Resource
-
- org.cdk8s.plus20.AbstractPod
-
- org.cdk8s.plus20.Workload
-
- org.cdk8s.plus20.DaemonSet
-
- All Implemented Interfaces:
IApiEndpoint,IApiResource,IResource,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.59.0 (build eb02c92)", date="2022-05-18T23:19:48.571Z") @Stability(Stable) public class DaemonSet extends Workload
A DaemonSet ensures that all (or some) Nodes run a copy of a Pod.As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.
Some typical uses of a DaemonSet are:
- running a cluster storage daemon on every node
- running a logs collection daemon on every node
- running a node monitoring daemon on every node
In a simple case, one DaemonSet, covering all nodes, would be used for each type of daemon. A more complex setup might use multiple DaemonSets for a single type of daemon, but with different flags and/or different memory and cpu requests for different hardware types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDaemonSet.BuilderA fluent builder forDaemonSet.-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IApiEndpoint
IApiEndpoint.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IApiResource
IApiResource.Jsii$Default
-
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IResource
IResource.Jsii$Default
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDaemonSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedDaemonSet(software.amazon.jsii.JsiiObjectRef objRef)DaemonSet(software.constructs.Construct scope, String id)DaemonSet(software.constructs.Construct scope, String id, DaemonSetProps props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.cdk8s.ApiObjectgetApiObject()The underlying cdk8s API object.NumbergetMinReadySeconds()StringgetResourceType()The name of a resource type as it appears in the relevant API endpoint.-
Methods inherited from class org.cdk8s.plus20.Workload
getMatchExpressions, getMatchLabels, getPodMetadata, select
-
Methods inherited from class org.cdk8s.plus20.AbstractPod
addContainer, addHostAlias, addInitContainer, addVolume, getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getInitContainers, getRestartPolicy, getSecurityContext, getServiceAccount, getVolumes
-
Methods inherited from class org.cdk8s.plus20.Resource
asApiResource, asNonApiResource, getApiGroup, getApiVersion, getKind, getMetadata, getName, getResourceName
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
DaemonSet
protected DaemonSet(software.amazon.jsii.JsiiObjectRef objRef)
-
DaemonSet
protected DaemonSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
DaemonSet
@Stability(Stable) public DaemonSet(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable DaemonSetProps props)- Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
DaemonSet
@Stability(Stable) public DaemonSet(@NotNull software.constructs.Construct scope, @NotNull String id)- Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Detail
-
getApiObject
@Stability(Stable) @NotNull protected org.cdk8s.ApiObject getApiObject()
The underlying cdk8s API object.- Specified by:
getApiObjectin classResource- See Also:
base.Resource.apiObject
-
getMinReadySeconds
@Stability(Stable) @NotNull public Number getMinReadySeconds()
-
getResourceType
@Stability(Stable) @NotNull public String getResourceType()
The name of a resource type as it appears in the relevant API endpoint.- Specified by:
getResourceTypein interfaceIApiResource- Specified by:
getResourceTypein classResource
-
-