mirror of https://github.com/pulumi/pulumi.git
59 lines
1.9 KiB
C#
59 lines
1.9 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Pulumi;
|
|
using Kubernetes = Pulumi.Kubernetes;
|
|
|
|
return await Deployment.RunAsync(() =>
|
|
{
|
|
var argocd_serverDeployment = new Kubernetes.Apps.V1.Deployment("argocd_serverDeployment", new()
|
|
{
|
|
ApiVersion = "apps/v1",
|
|
Kind = "Deployment",
|
|
Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs
|
|
{
|
|
Name = "argocd-server",
|
|
},
|
|
Spec = new Kubernetes.Types.Inputs.Apps.V1.DeploymentSpecArgs
|
|
{
|
|
Selector = new Kubernetes.Types.Inputs.Meta.V1.LabelSelectorArgs
|
|
{
|
|
MatchLabels =
|
|
{
|
|
{ "app", "server" },
|
|
},
|
|
},
|
|
Replicas = 1,
|
|
Template = new Kubernetes.Types.Inputs.Core.V1.PodTemplateSpecArgs
|
|
{
|
|
Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs
|
|
{
|
|
Labels =
|
|
{
|
|
{ "app", "server" },
|
|
},
|
|
},
|
|
Spec = new Kubernetes.Types.Inputs.Core.V1.PodSpecArgs
|
|
{
|
|
Containers = new[]
|
|
{
|
|
new Kubernetes.Types.Inputs.Core.V1.ContainerArgs
|
|
{
|
|
Name = "nginx",
|
|
Image = "nginx",
|
|
ReadinessProbe = new Kubernetes.Types.Inputs.Core.V1.ProbeArgs
|
|
{
|
|
HttpGet = new Kubernetes.Types.Inputs.Core.V1.HTTPGetActionArgs
|
|
{
|
|
Port = 8080,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
});
|
|
|