github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/kubernetes-template-pp/dotnet/kubernetes-template.cs (about)

     1  using System.Collections.Generic;
     2  using Pulumi;
     3  using Kubernetes = Pulumi.Kubernetes;
     4  
     5  return await Deployment.RunAsync(() => 
     6  {
     7      var argocd_serverDeployment = new Kubernetes.Apps.V1.Deployment("argocd_serverDeployment", new()
     8      {
     9          ApiVersion = "apps/v1",
    10          Kind = "Deployment",
    11          Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs
    12          {
    13              Name = "argocd-server",
    14          },
    15          Spec = new Kubernetes.Types.Inputs.Apps.V1.DeploymentSpecArgs
    16          {
    17              Selector = new Kubernetes.Types.Inputs.Meta.V1.LabelSelectorArgs
    18              {
    19                  MatchLabels = 
    20                  {
    21                      { "app", "server" },
    22                  },
    23              },
    24              Replicas = 1,
    25              Template = new Kubernetes.Types.Inputs.Core.V1.PodTemplateSpecArgs
    26              {
    27                  Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs
    28                  {
    29                      Labels = 
    30                      {
    31                          { "app", "server" },
    32                      },
    33                  },
    34                  Spec = new Kubernetes.Types.Inputs.Core.V1.PodSpecArgs
    35                  {
    36                      Containers = new[]
    37                      {
    38                          new Kubernetes.Types.Inputs.Core.V1.ContainerArgs
    39                          {
    40                              Name = "nginx",
    41                              Image = "nginx",
    42                              ReadinessProbe = new Kubernetes.Types.Inputs.Core.V1.ProbeArgs
    43                              {
    44                                  HttpGet = new Kubernetes.Types.Inputs.Core.V1.HTTPGetActionArgs
    45                                  {
    46                                      Port = 8080,
    47                                  },
    48                              },
    49                          },
    50                      },
    51                  },
    52              },
    53          },
    54      });
    55  
    56  });
    57