Package org.cdk8s.plus24.k8s
Class KubeRuntimeClass.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeRuntimeClass.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeRuntimeClass>
- Enclosing class:
- KubeRuntimeClass
@Stability(Stable) public static final class KubeRuntimeClass.Builder extends Object implements software.amazon.jsii.Builder<KubeRuntimeClass>
A fluent builder forKubeRuntimeClass
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeRuntimeClass
build()
static KubeRuntimeClass.Builder
create(software.constructs.Construct scope, String id)
KubeRuntimeClass.Builder
handler(String handler)
Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class.KubeRuntimeClass.Builder
metadata(ObjectMeta metadata)
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.KubeRuntimeClass.Builder
overhead(Overhead overhead)
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.KubeRuntimeClass.Builder
scheduling(Scheduling scheduling)
Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeRuntimeClass.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeRuntimeClass.Builder
.
-
handler
@Stability(Stable) public KubeRuntimeClass.Builder handler(String handler)
Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class.The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
- Parameters:
handler
- Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeRuntimeClass.Builder metadata(ObjectMeta metadata)
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.- Parameters:
metadata
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. This parameter is required.- Returns:
this
-
overhead
@Stability(Stable) public KubeRuntimeClass.Builder overhead(Overhead overhead)
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.For more details, see https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
- Parameters:
overhead
- Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This parameter is required.- Returns:
this
-
scheduling
@Stability(Stable) public KubeRuntimeClass.Builder scheduling(Scheduling scheduling)
Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it.If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
- Parameters:
scheduling
- Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeRuntimeClass build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeRuntimeClass>
-
-