@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:08.298Z") @Stability(value=Experimental) 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
(experimental) A fluent builder for
KubernetesManifest. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE
(experimental) The CloudFormation reosurce type.
|
| Modifier | Constructor and Description |
|---|---|
|
KubernetesManifest(software.constructs.Construct scope,
String id,
KubernetesManifestProps props) |
protected |
KubernetesManifest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
KubernetesManifest(software.amazon.jsii.JsiiObjectRef objRef) |
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final String RESOURCE_TYPE
protected KubernetesManifest(software.amazon.jsii.JsiiObjectRef objRef)
protected KubernetesManifest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public KubernetesManifest(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
KubernetesManifestProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.Copyright © 2022. All rights reserved.