Package org.cdk8s.plus24
Class DaemonSet
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus24.Resource
-
- org.cdk8s.plus24.AbstractPod
-
- org.cdk8s.plus24.Workload
-
- org.cdk8s.plus24.DaemonSet
-
- All Implemented Interfaces:
IApiEndpoint
,IApiResource
,INetworkPolicyPeer
,IPodSelector
,IResource
,ISubject
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-07-31T02:59:12.374Z") @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 class
DaemonSet.Builder
A 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.plus24.IApiEndpoint
IApiEndpoint.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.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.plus24.INetworkPolicyPeer
INetworkPolicyPeer.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IPodSelector
IPodSelector.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IResource
IResource.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.ISubject
ISubject.Jsii$Default
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DaemonSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
DaemonSet(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.ApiObject
getApiObject()
The underlying cdk8s API object.Number
getMinReadySeconds()
String
getResourceType()
The name of a resource type as it appears in the relevant API endpoint.-
Methods inherited from class org.cdk8s.plus24.Workload
getConnections, getMatchExpressions, getMatchLabels, getPodMetadata, getScheduling, select
-
Methods inherited from class org.cdk8s.plus24.AbstractPod
addContainer, addHostAlias, addInitContainer, addVolume, getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getInitContainers, getRestartPolicy, getSecurityContext, getServiceAccount, getVolumes, toNetworkPolicyPeerConfig, toPodSelector, toPodSelectorConfig, toSubjectConfiguration
-
Methods inherited from class org.cdk8s.plus24.Resource
asApiResource, asNonApiResource, getApiGroup, getApiVersion, getKind, getMetadata, getName, getPermissions, 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:
getApiObject
in 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:
getResourceType
in interfaceIApiResource
- Specified by:
getResourceType
in classResource
- See Also:
- https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
-
-