@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:28.296Z") public class KubernetesManifest extends Construct
Alternatively, you can use cluster.addManifest(resource[, resource, ...])
to define resources on this cluster.
Applies/deletes the manifest using kubectl
.
Example:
Cluster cluster; KubernetesManifest namespace = cluster.addManifest("my-namespace", Map.of( "apiVersion", "v1", "kind", "Namespace", "metadata", Map.of("name", "my-app"))); KubernetesManifest service = cluster.addManifest("my-service", Map.of( "metadata", Map.of( "name", "myservice", "namespace", "my-app"), "spec", Map.of())); service.node.addDependency(namespace);
Modifier and Type | Class and Description |
---|---|
static class |
KubernetesManifest.Builder
A fluent builder for
KubernetesManifest . |
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCE_TYPE
The CloudFormation reosurce type.
|
Modifier | Constructor and Description |
---|---|
protected |
KubernetesManifest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
KubernetesManifest(software.amazon.jsii.JsiiObjectRef objRef) |
|
KubernetesManifest(software.constructs.Construct scope,
java.lang.String id,
KubernetesManifestProps props) |
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String RESOURCE_TYPE
protected KubernetesManifest(software.amazon.jsii.JsiiObjectRef objRef)
protected KubernetesManifest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public KubernetesManifest(software.constructs.Construct scope, java.lang.String id, KubernetesManifestProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.