2022-07-21 19:04:02 +00:00
|
|
|
using System.Collections.Generic;
|
2023-03-24 11:43:46 +00:00
|
|
|
using System.Linq;
|
2020-08-11 18:43:56 +00:00
|
|
|
using Pulumi;
|
|
|
|
using Kubernetes = Pulumi.Kubernetes;
|
|
|
|
|
2022-07-21 19:04:02 +00:00
|
|
|
return await Deployment.RunAsync(() =>
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
var argocd_serverDeployment = new Kubernetes.Apps.V1.Deployment("argocd_serverDeployment", new()
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
ApiVersion = "apps/v1",
|
|
|
|
Kind = "Deployment",
|
|
|
|
Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
Name = "argocd-server",
|
|
|
|
},
|
|
|
|
Spec = new Kubernetes.Types.Inputs.Apps.V1.DeploymentSpecArgs
|
|
|
|
{
|
|
|
|
Selector = new Kubernetes.Types.Inputs.Meta.V1.LabelSelectorArgs
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
MatchLabels =
|
|
|
|
{
|
|
|
|
{ "app", "server" },
|
|
|
|
},
|
2020-08-11 18:43:56 +00:00
|
|
|
},
|
2022-07-21 19:04:02 +00:00
|
|
|
Replicas = 1,
|
|
|
|
Template = new Kubernetes.Types.Inputs.Core.V1.PodTemplateSpecArgs
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs
|
2021-06-24 16:17:55 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
Labels =
|
2021-06-24 16:17:55 +00:00
|
|
|
{
|
|
|
|
{ "app", "server" },
|
|
|
|
},
|
|
|
|
},
|
2022-07-21 19:04:02 +00:00
|
|
|
Spec = new Kubernetes.Types.Inputs.Core.V1.PodSpecArgs
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
Containers = new[]
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
new Kubernetes.Types.Inputs.Core.V1.ContainerArgs
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
Name = "nginx",
|
|
|
|
Image = "nginx",
|
|
|
|
ReadinessProbe = new Kubernetes.Types.Inputs.Core.V1.ProbeArgs
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
HttpGet = new Kubernetes.Types.Inputs.Core.V1.HTTPGetActionArgs
|
2020-08-11 18:43:56 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
Port = 8080,
|
2020-08-11 18:43:56 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-07-21 19:04:02 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
2020-08-11 18:43:56 +00:00
|
|
|
|