Class 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.

    • 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.