Skip to content

Instantly share code, notes, and snippets.

@hadoan
Last active January 8, 2020 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadoan/8e27fbecc139ab32dc4c47efcba6d9f8 to your computer and use it in GitHub Desktop.
Save hadoan/8e27fbecc139ab32dc4c47efcba6d9f8 to your computer and use it in GitHub Desktop.
//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