Last active
January 8, 2020 16:10
-
-
Save hadoan/8e27fbecc139ab32dc4c47efcba6d9f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//2. Create new deployment | |
var cqrsTodoDeployment = new Pulumi.Kubernetes.Apps.V1.Deployment("cqrstodo-deployment", new DeploymentArgs | |
{ | |
Metadata = new ObjectMetaArgs | |
{ | |
Name = "cqrstodo-deployment", | |
Labels = new InputMap<string> { { "app", "cqrstodo" } } | |
}, | |
Spec = new DeploymentSpecArgs | |
{ | |
Replicas = 1, | |
Selector = new LabelSelectorArgs | |
{ | |
MatchLabels = new InputMap<string> { { "app", "cqrstodo" } } | |
}, | |
Template = new PodTemplateSpecArgs | |
{ | |
Metadata = new ObjectMetaArgs | |
{ | |
Name = "cqrstodo", | |
Labels = new InputMap<string> { { "app", "cqrstodo" } } | |
}, | |
Spec = new PodSpecArgs | |
{ | |
Containers = new InputList<ContainerArgs>{ | |
new ContainerArgs{ | |
Name="cqrstodo", | |
Image="ecr-url", | |
Ports=new ContainerPortArgs{ContainerPortValue=80} | |
} | |
} | |
} | |
} | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment