Show / Hide Table of Contents

Class KubernetesPatch

(experimental) A CloudFormation resource which applies/restores a JSON patch into a Kubernetes resource.

Inheritance
object
KubernetesPatch
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class KubernetesPatch : Construct
Syntax (vb)
Public Class KubernetesPatch Inherits Construct
Remarks

Stability: Experimental

See: https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/

ExampleMetadata: infused

Examples
Cluster cluster;

             new KubernetesPatch(this, "hello-kub-deployment-label", new KubernetesPatchProps {
                 Cluster = cluster,
                 ResourceName = "deployment/hello-kubernetes",
                 ApplyPatch = new Dictionary<string, object> { { "spec", new Dictionary<string, int> { { "replicas", 5 } } } },
                 RestorePatch = new Dictionary<string, object> { { "spec", new Dictionary<string, int> { { "replicas", 3 } } } }
             });

Synopsis

Constructors

KubernetesPatch(Construct, string, IKubernetesPatchProps)

(experimental) A CloudFormation resource which applies/restores a JSON patch into a Kubernetes resource.

Constructors

KubernetesPatch(Construct, string, IKubernetesPatchProps)

(experimental) A CloudFormation resource which applies/restores a JSON patch into a Kubernetes resource.

public KubernetesPatch(Construct scope, string id, IKubernetesPatchProps props)
Parameters
scope Construct
id string
props IKubernetesPatchProps
Remarks

Stability: Experimental

Back to top Generated by DocFX