Class KubernetesManifest
Represents a manifest within the Kubernetes system.
Inherited Members
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.AWS.EKS.dll
Syntax (csharp)
public class KubernetesManifest : Construct, IConstruct, IDependable
Syntax (vb)
Public Class KubernetesManifest
Inherits Construct
Implements IConstruct, IDependable
Remarks
Alternatively, you can use cluster.addManifest(resource[, resource, ...])
to define resources on this cluster.
Applies/deletes the manifest using kubectl
.
ExampleMetadata: infused
Examples
Cluster cluster;
var namespace = cluster.AddManifest("my-namespace", new Dictionary<string, object> {
{ "apiVersion", "v1" },
{ "kind", "Namespace" },
{ "metadata", new Dictionary<string, string> { { "name", "my-app" } } }
});
var service = cluster.AddManifest("my-service", new Dictionary<string, object> {
{ "metadata", new Dictionary<string, string> {
{ "name", "myservice" },
{ "namespace", "my-app" }
} },
{ "spec", new Dictionary<string, object> { } }
});
service.Node.AddDependency(namespace);
Synopsis
Constructors
KubernetesManifest(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
KubernetesManifest(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
KubernetesManifest(Construct, String, IKubernetesManifestProps) |
Properties
RESOURCE_TYPE | The CloudFormation reosurce type. |
Constructors
KubernetesManifest(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected KubernetesManifest(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
KubernetesManifest(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected KubernetesManifest(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
KubernetesManifest(Construct, String, IKubernetesManifestProps)
public KubernetesManifest(Construct scope, string id, IKubernetesManifestProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IKubernetesManifestProps
Properties
RESOURCE_TYPE
The CloudFormation reosurce type.
public static string RESOURCE_TYPE { get; }
Property Value
System.String
Implements
Constructs.IConstruct