Namespace Pulumi.AliCloud.CS
Classes
Application
DEPRECATED: This resource manages applications in swarm cluster only, which is being deprecated and will be replaced by Kubernetes cluster.
This resource use an orchestration template to define and deploy a multi-container application. An application is created by using an orchestration template. Each application can contain one or more services.
NOTE: Application orchestration template must be a valid Docker Compose YAML template.
NOTE: At present, this resource only support swarm cluster.
Example Usage
using System.IO;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var app = new AliCloud.CS.Application("app", new AliCloud.CS.ApplicationArgs
{
ClusterName = "my-first-swarm",
Environment =
{
{ "EXTERNAL_URL", "123.123.123.123:8080" },
},
LatestImage = true,
Template = File.ReadAllText("wordpress.yml"),
Version = "1.2",
});
}
}
ApplicationArgs
ApplicationState
Cluster
ClusterArgs
ClusterState
GetKubernetesClusters
GetKubernetesClustersArgs
GetKubernetesClustersResult
GetManagedKubernetesClusters
GetManagedKubernetesClustersArgs
GetManagedKubernetesClustersResult
GetServerlessKubernetesClusters
GetServerlessKubernetesClustersArgs
GetServerlessKubernetesClustersResult
Kubernetes
KubernetesArgs
KubernetesAutoscaler
This resource will help you to manager cluster-autoscaler in Kubernetes Cluster.
NOTE: The scaling group must use CentOS7 or AliyunLinux2 as base image.
NOTE: The cluster-autoscaler can only use the same size of instanceTypes in one scaling group.
NOTE: Add Policy to RAM role of the node to deploy cluster-autoscaler if you need.
NOTE: Available in 1.65.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.CS.KubernetesAutoscaler("default", new AliCloud.CS.KubernetesAutoscalerArgs
{
ClusterId = @var.Cluster_id,
CoolDownDuration = @var.Cool_down_duration,
DeferScaleInDuration = @var.Defer_scale_in_duration,
Nodepools =
{
new AliCloud.CS.Inputs.KubernetesAutoscalerNodepoolArgs
{
Id = "scaling_group_id",
Labels = "a=b",
Taints = "c=d:NoSchedule",
},
},
Utilization = @var.Utilization,
});
}
}
KubernetesAutoscalerArgs
KubernetesAutoscalerState
KubernetesState
ManagedKubernetes
ManagedKubernetesArgs
ManagedKubernetesState
ServerlessKubernetes
ServerlessKubernetesArgs
ServerlessKubernetesState
Swarm
DEPRECATED: This resource manages swarm cluster, which is being deprecated and will be replaced by Kubernetes cluster.
This resource will help you to manager a Swarm Cluster.
NOTE: Swarm cluster only supports VPC network and you can specify a VPC network by filed
vswitch_id.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var myCluster = new AliCloud.CS.Swarm("myCluster", new AliCloud.CS.SwarmArgs
{
CidrBlock = "172.18.0.0/24",
DiskCategory = "cloud_efficiency",
DiskSize = 20,
ImageId = @var.Image_id,
InstanceType = "ecs.n4.small",
NodeNumber = 2,
Password = "Yourpassword1234",
VswitchId = @var.Vswitch_id,
});
}
}