Alibaba Cloud v3.38.0, Jun 2 23
Alibaba Cloud v3.38.0, Jun 2 23
alicloud.eci.ContainerGroup
Explore with Pulumi AI
Provides ECI Container Group resource.
For information about ECI Container Group and how to use it, see What is Container Group.
NOTE: Available in v1.111.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Eci.ContainerGroup("example", new()
{
ContainerGroupName = "tf-testacc-eci-gruop",
Cpu = 8,
Memory = 16,
RestartPolicy = "OnFailure",
SecurityGroupId = alicloud_security_group.Group.Id,
VswitchId = data.Alicloud_vpcs.Default.Vpcs[0].Vswitch_ids[0],
Tags =
{
{ "TF", "create" },
},
Containers = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerArgs
{
Image = "registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:alpine",
Name = "nginx",
WorkingDir = "/tmp/nginx",
ImagePullPolicy = "IfNotPresent",
Commands = new[]
{
"/bin/sh",
"-c",
"sleep 9999",
},
VolumeMounts = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerVolumeMountArgs
{
MountPath = "/tmp/test",
ReadOnly = false,
Name = "empty1",
},
},
Ports = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerPortArgs
{
Port = 80,
Protocol = "TCP",
},
},
EnvironmentVars = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerEnvironmentVarArgs
{
Key = "test",
Value = "nginx",
},
},
LivenessProbes = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeArgs
{
PeriodSeconds = 5,
InitialDelaySeconds = 5,
SuccessThreshold = 1,
FailureThreshold = 3,
TimeoutSeconds = 1,
Execs = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeExecArgs
{
Commands = new[]
{
"cat /tmp/healthy",
},
},
},
},
},
ReadinessProbes = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeArgs
{
PeriodSeconds = 5,
InitialDelaySeconds = 5,
SuccessThreshold = 1,
FailureThreshold = 3,
TimeoutSeconds = 1,
Execs = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeExecArgs
{
Commands = new[]
{
"cat /tmp/healthy",
},
},
},
},
},
},
new AliCloud.Eci.Inputs.ContainerGroupContainerArgs
{
Image = "registry-vpc.cn-beijing.aliyuncs.com/eci_open/centos:7",
Name = "centos",
Commands = new[]
{
"/bin/sh",
"-c",
"sleep 9999",
},
},
},
InitContainers = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerArgs
{
Name = "init-busybox",
Image = "registry-vpc.cn-beijing.aliyuncs.com/eci_open/busybox:1.30",
ImagePullPolicy = "IfNotPresent",
Commands = new[]
{
"echo",
},
Args = new[]
{
"hello initcontainer",
},
},
},
Volumes = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupVolumeArgs
{
Name = "empty1",
Type = "EmptyDirVolume",
},
new AliCloud.Eci.Inputs.ContainerGroupVolumeArgs
{
Name = "empty2",
Type = "EmptyDirVolume",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eci.NewContainerGroup(ctx, "example", &eci.ContainerGroupArgs{
ContainerGroupName: pulumi.String("tf-testacc-eci-gruop"),
Cpu: pulumi.Float64(8),
Memory: pulumi.Float64(16),
RestartPolicy: pulumi.String("OnFailure"),
SecurityGroupId: pulumi.Any(alicloud_security_group.Group.Id),
VswitchId: pulumi.Any(data.Alicloud_vpcs.Default.Vpcs[0].Vswitch_ids[0]),
Tags: pulumi.AnyMap{
"TF": pulumi.Any("create"),
},
Containers: eci.ContainerGroupContainerArray{
&eci.ContainerGroupContainerArgs{
Image: pulumi.String("registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:alpine"),
Name: pulumi.String("nginx"),
WorkingDir: pulumi.String("/tmp/nginx"),
ImagePullPolicy: pulumi.String("IfNotPresent"),
Commands: pulumi.StringArray{
pulumi.String("/bin/sh"),
pulumi.String("-c"),
pulumi.String("sleep 9999"),
},
VolumeMounts: eci.ContainerGroupContainerVolumeMountArray{
&eci.ContainerGroupContainerVolumeMountArgs{
MountPath: pulumi.String("/tmp/test"),
ReadOnly: pulumi.Bool(false),
Name: pulumi.String("empty1"),
},
},
Ports: eci.ContainerGroupContainerPortArray{
&eci.ContainerGroupContainerPortArgs{
Port: pulumi.Int(80),
Protocol: pulumi.String("TCP"),
},
},
EnvironmentVars: eci.ContainerGroupContainerEnvironmentVarArray{
&eci.ContainerGroupContainerEnvironmentVarArgs{
Key: pulumi.String("test"),
Value: pulumi.String("nginx"),
},
},
LivenessProbes: eci.ContainerGroupContainerLivenessProbeArray{
&eci.ContainerGroupContainerLivenessProbeArgs{
PeriodSeconds: pulumi.Int(5),
InitialDelaySeconds: pulumi.Int(5),
SuccessThreshold: pulumi.Int(1),
FailureThreshold: pulumi.Int(3),
TimeoutSeconds: pulumi.Int(1),
Execs: eci.ContainerGroupContainerLivenessProbeExecArray{
&eci.ContainerGroupContainerLivenessProbeExecArgs{
Commands: pulumi.StringArray{
pulumi.String("cat /tmp/healthy"),
},
},
},
},
},
ReadinessProbes: eci.ContainerGroupContainerReadinessProbeArray{
&eci.ContainerGroupContainerReadinessProbeArgs{
PeriodSeconds: pulumi.Int(5),
InitialDelaySeconds: pulumi.Int(5),
SuccessThreshold: pulumi.Int(1),
FailureThreshold: pulumi.Int(3),
TimeoutSeconds: pulumi.Int(1),
Execs: eci.ContainerGroupContainerReadinessProbeExecArray{
&eci.ContainerGroupContainerReadinessProbeExecArgs{
Commands: pulumi.StringArray{
pulumi.String("cat /tmp/healthy"),
},
},
},
},
},
},
&eci.ContainerGroupContainerArgs{
Image: pulumi.String("registry-vpc.cn-beijing.aliyuncs.com/eci_open/centos:7"),
Name: pulumi.String("centos"),
Commands: pulumi.StringArray{
pulumi.String("/bin/sh"),
pulumi.String("-c"),
pulumi.String("sleep 9999"),
},
},
},
InitContainers: eci.ContainerGroupInitContainerArray{
&eci.ContainerGroupInitContainerArgs{
Name: pulumi.String("init-busybox"),
Image: pulumi.String("registry-vpc.cn-beijing.aliyuncs.com/eci_open/busybox:1.30"),
ImagePullPolicy: pulumi.String("IfNotPresent"),
Commands: pulumi.StringArray{
pulumi.String("echo"),
},
Args: pulumi.StringArray{
pulumi.String("hello initcontainer"),
},
},
},
Volumes: eci.ContainerGroupVolumeArray{
&eci.ContainerGroupVolumeArgs{
Name: pulumi.String("empty1"),
Type: pulumi.String("EmptyDirVolume"),
},
&eci.ContainerGroupVolumeArgs{
Name: pulumi.String("empty2"),
Type: pulumi.String("EmptyDirVolume"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eci.ContainerGroup;
import com.pulumi.alicloud.eci.ContainerGroupArgs;
import com.pulumi.alicloud.eci.inputs.ContainerGroupContainerArgs;
import com.pulumi.alicloud.eci.inputs.ContainerGroupInitContainerArgs;
import com.pulumi.alicloud.eci.inputs.ContainerGroupVolumeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ContainerGroup("example", ContainerGroupArgs.builder()
.containerGroupName("tf-testacc-eci-gruop")
.cpu(8)
.memory(16)
.restartPolicy("OnFailure")
.securityGroupId(alicloud_security_group.group().id())
.vswitchId(data.alicloud_vpcs().default().vpcs()[0].vswitch_ids()[0])
.tags(Map.of("TF", "create"))
.containers(
ContainerGroupContainerArgs.builder()
.image("registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:alpine")
.name("nginx")
.workingDir("/tmp/nginx")
.imagePullPolicy("IfNotPresent")
.commands(
"/bin/sh",
"-c",
"sleep 9999")
.volumeMounts(ContainerGroupContainerVolumeMountArgs.builder()
.mountPath("/tmp/test")
.readOnly(false)
.name("empty1")
.build())
.ports(ContainerGroupContainerPortArgs.builder()
.port(80)
.protocol("TCP")
.build())
.environmentVars(ContainerGroupContainerEnvironmentVarArgs.builder()
.key("test")
.value("nginx")
.build())
.livenessProbes(ContainerGroupContainerLivenessProbeArgs.builder()
.periodSeconds("5")
.initialDelaySeconds("5")
.successThreshold("1")
.failureThreshold("3")
.timeoutSeconds("1")
.execs(ContainerGroupContainerLivenessProbeExecArgs.builder()
.commands("cat /tmp/healthy")
.build())
.build())
.readinessProbes(ContainerGroupContainerReadinessProbeArgs.builder()
.periodSeconds("5")
.initialDelaySeconds("5")
.successThreshold("1")
.failureThreshold("3")
.timeoutSeconds("1")
.execs(ContainerGroupContainerReadinessProbeExecArgs.builder()
.commands("cat /tmp/healthy")
.build())
.build())
.build(),
ContainerGroupContainerArgs.builder()
.image("registry-vpc.cn-beijing.aliyuncs.com/eci_open/centos:7")
.name("centos")
.commands(
"/bin/sh",
"-c",
"sleep 9999")
.build())
.initContainers(ContainerGroupInitContainerArgs.builder()
.name("init-busybox")
.image("registry-vpc.cn-beijing.aliyuncs.com/eci_open/busybox:1.30")
.imagePullPolicy("IfNotPresent")
.commands("echo")
.args("hello initcontainer")
.build())
.volumes(
ContainerGroupVolumeArgs.builder()
.name("empty1")
.type("EmptyDirVolume")
.build(),
ContainerGroupVolumeArgs.builder()
.name("empty2")
.type("EmptyDirVolume")
.build())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.eci.ContainerGroup("example",
container_group_name="tf-testacc-eci-gruop",
cpu=8,
memory=16,
restart_policy="OnFailure",
security_group_id=alicloud_security_group["group"]["id"],
vswitch_id=data["alicloud_vpcs"]["default"]["vpcs"][0]["vswitch_ids"],
tags={
"TF": "create",
},
containers=[
alicloud.eci.ContainerGroupContainerArgs(
image="registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:alpine",
name="nginx",
working_dir="/tmp/nginx",
image_pull_policy="IfNotPresent",
commands=[
"/bin/sh",
"-c",
"sleep 9999",
],
volume_mounts=[alicloud.eci.ContainerGroupContainerVolumeMountArgs(
mount_path="/tmp/test",
read_only=False,
name="empty1",
)],
ports=[alicloud.eci.ContainerGroupContainerPortArgs(
port=80,
protocol="TCP",
)],
environment_vars=[alicloud.eci.ContainerGroupContainerEnvironmentVarArgs(
key="test",
value="nginx",
)],
liveness_probes=[alicloud.eci.ContainerGroupContainerLivenessProbeArgs(
period_seconds=5,
initial_delay_seconds=5,
success_threshold=1,
failure_threshold=3,
timeout_seconds=1,
execs=[alicloud.eci.ContainerGroupContainerLivenessProbeExecArgs(
commands=["cat /tmp/healthy"],
)],
)],
readiness_probes=[alicloud.eci.ContainerGroupContainerReadinessProbeArgs(
period_seconds=5,
initial_delay_seconds=5,
success_threshold=1,
failure_threshold=3,
timeout_seconds=1,
execs=[alicloud.eci.ContainerGroupContainerReadinessProbeExecArgs(
commands=["cat /tmp/healthy"],
)],
)],
),
alicloud.eci.ContainerGroupContainerArgs(
image="registry-vpc.cn-beijing.aliyuncs.com/eci_open/centos:7",
name="centos",
commands=[
"/bin/sh",
"-c",
"sleep 9999",
],
),
],
init_containers=[alicloud.eci.ContainerGroupInitContainerArgs(
name="init-busybox",
image="registry-vpc.cn-beijing.aliyuncs.com/eci_open/busybox:1.30",
image_pull_policy="IfNotPresent",
commands=["echo"],
args=["hello initcontainer"],
)],
volumes=[
alicloud.eci.ContainerGroupVolumeArgs(
name="empty1",
type="EmptyDirVolume",
),
alicloud.eci.ContainerGroupVolumeArgs(
name="empty2",
type="EmptyDirVolume",
),
])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.eci.ContainerGroup("example", {
containerGroupName: "tf-testacc-eci-gruop",
cpu: 8,
memory: 16,
restartPolicy: "OnFailure",
securityGroupId: alicloud_security_group.group.id,
vswitchId: data.alicloud_vpcs["default"].vpcs[0].vswitch_ids[0],
tags: {
TF: "create",
},
containers: [
{
image: "registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:alpine",
name: "nginx",
workingDir: "/tmp/nginx",
imagePullPolicy: "IfNotPresent",
commands: [
"/bin/sh",
"-c",
"sleep 9999",
],
volumeMounts: [{
mountPath: "/tmp/test",
readOnly: false,
name: "empty1",
}],
ports: [{
port: 80,
protocol: "TCP",
}],
environmentVars: [{
key: "test",
value: "nginx",
}],
livenessProbes: [{
periodSeconds: 5,
initialDelaySeconds: 5,
successThreshold: 1,
failureThreshold: 3,
timeoutSeconds: 1,
execs: [{
commands: ["cat /tmp/healthy"],
}],
}],
readinessProbes: [{
periodSeconds: 5,
initialDelaySeconds: 5,
successThreshold: 1,
failureThreshold: 3,
timeoutSeconds: 1,
execs: [{
commands: ["cat /tmp/healthy"],
}],
}],
},
{
image: "registry-vpc.cn-beijing.aliyuncs.com/eci_open/centos:7",
name: "centos",
commands: [
"/bin/sh",
"-c",
"sleep 9999",
],
},
],
initContainers: [{
name: "init-busybox",
image: "registry-vpc.cn-beijing.aliyuncs.com/eci_open/busybox:1.30",
imagePullPolicy: "IfNotPresent",
commands: ["echo"],
args: ["hello initcontainer"],
}],
volumes: [
{
name: "empty1",
type: "EmptyDirVolume",
},
{
name: "empty2",
type: "EmptyDirVolume",
},
],
});
resources:
example:
type: alicloud:eci:ContainerGroup
properties:
containerGroupName: tf-testacc-eci-gruop
cpu: 8
memory: 16
restartPolicy: OnFailure
securityGroupId: ${alicloud_security_group.group.id}
vswitchId: ${data.alicloud_vpcs.default.vpcs[0].vswitch_ids[0]}
tags:
TF: create
containers:
- image: registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:alpine
name: nginx
workingDir: /tmp/nginx
imagePullPolicy: IfNotPresent
commands:
- /bin/sh
- -c
- sleep 9999
volumeMounts:
- mountPath: /tmp/test
readOnly: false
name: empty1
ports:
- port: 80
protocol: TCP
environmentVars:
- key: test
value: nginx
livenessProbes:
- periodSeconds: '5'
initialDelaySeconds: '5'
successThreshold: '1'
failureThreshold: '3'
timeoutSeconds: '1'
execs:
- commands:
- cat /tmp/healthy
readinessProbes:
- periodSeconds: '5'
initialDelaySeconds: '5'
successThreshold: '1'
failureThreshold: '3'
timeoutSeconds: '1'
execs:
- commands:
- cat /tmp/healthy
- image: registry-vpc.cn-beijing.aliyuncs.com/eci_open/centos:7
name: centos
commands:
- /bin/sh
- -c
- sleep 9999
initContainers:
- name: init-busybox
image: registry-vpc.cn-beijing.aliyuncs.com/eci_open/busybox:1.30
imagePullPolicy: IfNotPresent
commands:
- echo
args:
- hello initcontainer
volumes:
- name: empty1
type: EmptyDirVolume
- name: empty2
type: EmptyDirVolume
Create ContainerGroup Resource
new ContainerGroup(name: string, args: ContainerGroupArgs, opts?: CustomResourceOptions);
@overload
def ContainerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
acr_registry_infos: Optional[Sequence[ContainerGroupAcrRegistryInfoArgs]] = None,
auto_create_eip: Optional[bool] = None,
auto_match_image_cache: Optional[bool] = None,
container_group_name: Optional[str] = None,
containers: Optional[Sequence[ContainerGroupContainerArgs]] = None,
cpu: Optional[float] = None,
dns_config: Optional[ContainerGroupDnsConfigArgs] = None,
eci_security_context: Optional[ContainerGroupEciSecurityContextArgs] = None,
eip_bandwidth: Optional[int] = None,
eip_instance_id: Optional[str] = None,
host_aliases: Optional[Sequence[ContainerGroupHostAliasArgs]] = None,
image_registry_credentials: Optional[Sequence[ContainerGroupImageRegistryCredentialArgs]] = None,
init_containers: Optional[Sequence[ContainerGroupInitContainerArgs]] = None,
insecure_registry: Optional[str] = None,
instance_type: Optional[str] = None,
memory: Optional[float] = None,
plain_http_registry: Optional[str] = None,
ram_role_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
restart_policy: Optional[str] = None,
security_group_id: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
volumes: Optional[Sequence[ContainerGroupVolumeArgs]] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None)
@overload
def ContainerGroup(resource_name: str,
args: ContainerGroupArgs,
opts: Optional[ResourceOptions] = None)
func NewContainerGroup(ctx *Context, name string, args ContainerGroupArgs, opts ...ResourceOption) (*ContainerGroup, error)
public ContainerGroup(string name, ContainerGroupArgs args, CustomResourceOptions? opts = null)
public ContainerGroup(String name, ContainerGroupArgs args)
public ContainerGroup(String name, ContainerGroupArgs args, CustomResourceOptions options)
type: alicloud:eci:ContainerGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContainerGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContainerGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ContainerGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ContainerGroup resource accepts the following input properties:
- Container
Group stringName The name of the container group.
- Containers
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Args> The list of containers.
- Security
Group stringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- Vswitch
Id string The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- Acr
Registry List<Pulumi.Infos Ali Cloud. Eci. Inputs. Container Group Acr Registry Info Args> The ACR enterprise edition example properties.
- Auto
Create boolEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- Auto
Match boolImage Cache Specifies whether to automatically match the image cache. Default value: false.
- Cpu double
The amount of CPU resources allocated to the container group.
- Dns
Config Pulumi.Ali Cloud. Eci. Inputs. Container Group Dns Config Args The structure of dnsConfig.
- Eci
Security Pulumi.Context Ali Cloud. Eci. Inputs. Container Group Eci Security Context Args The security context of the container group.
- Eip
Bandwidth int The bandwidth of the EIP. The default value is
5
.- Eip
Instance stringId The ID of the elastic IP address (EIP).
- Host
Aliases List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Host Alias Args> HostAliases.
- Image
Registry List<Pulumi.Credentials Ali Cloud. Eci. Inputs. Container Group Image Registry Credential Args> The image registry credential. The details see Block
image_registry_credential
.- Init
Containers List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container Args> The list of initContainers.
- Insecure
Registry string The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- Instance
Type string The type of the ECS instance.
- Memory double
The amount of memory resources allocated to the container group.
- Plain
Http stringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- Ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId The ID of the resource group.
- Restart
Policy string The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- Volumes
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Volume Args> The list of volumes.
- Zone
Id string The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- Container
Group stringName The name of the container group.
- Containers
[]Container
Group Container Args The list of containers.
- Security
Group stringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- Vswitch
Id string The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- Acr
Registry []ContainerInfos Group Acr Registry Info Args The ACR enterprise edition example properties.
- Auto
Create boolEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- Auto
Match boolImage Cache Specifies whether to automatically match the image cache. Default value: false.
- Cpu float64
The amount of CPU resources allocated to the container group.
- Dns
Config ContainerGroup Dns Config Args The structure of dnsConfig.
- Eci
Security ContainerContext Group Eci Security Context Args The security context of the container group.
- Eip
Bandwidth int The bandwidth of the EIP. The default value is
5
.- Eip
Instance stringId The ID of the elastic IP address (EIP).
- Host
Aliases []ContainerGroup Host Alias Args HostAliases.
- Image
Registry []ContainerCredentials Group Image Registry Credential Args The image registry credential. The details see Block
image_registry_credential
.- Init
Containers []ContainerGroup Init Container Args The list of initContainers.
- Insecure
Registry string The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- Instance
Type string The type of the ECS instance.
- Memory float64
The amount of memory resources allocated to the container group.
- Plain
Http stringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- Ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId The ID of the resource group.
- Restart
Policy string The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- map[string]interface{}
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- Volumes
[]Container
Group Volume Args The list of volumes.
- Zone
Id string The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- container
Group StringName The name of the container group.
- containers
List<Container
Group Container Args> The list of containers.
- security
Group StringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- vswitch
Id String The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- acr
Registry List<ContainerInfos Group Acr Registry Info Args> The ACR enterprise edition example properties.
- auto
Create BooleanEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- auto
Match BooleanImage Cache Specifies whether to automatically match the image cache. Default value: false.
- cpu Double
The amount of CPU resources allocated to the container group.
- dns
Config ContainerGroup Dns Config Args The structure of dnsConfig.
- eci
Security ContainerContext Group Eci Security Context Args The security context of the container group.
- eip
Bandwidth Integer The bandwidth of the EIP. The default value is
5
.- eip
Instance StringId The ID of the elastic IP address (EIP).
- host
Aliases List<ContainerGroup Host Alias Args> HostAliases.
- image
Registry List<ContainerCredentials Group Image Registry Credential Args> The image registry credential. The details see Block
image_registry_credential
.- init
Containers List<ContainerGroup Init Container Args> The list of initContainers.
- insecure
Registry String The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- instance
Type String The type of the ECS instance.
- memory Double
The amount of memory resources allocated to the container group.
- plain
Http StringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- ram
Role StringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId The ID of the resource group.
- restart
Policy String The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- Map<String,Object>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- volumes
List<Container
Group Volume Args> The list of volumes.
- zone
Id String The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- container
Group stringName The name of the container group.
- containers
Container
Group Container Args[] The list of containers.
- security
Group stringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- vswitch
Id string The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- acr
Registry ContainerInfos Group Acr Registry Info Args[] The ACR enterprise edition example properties.
- auto
Create booleanEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- auto
Match booleanImage Cache Specifies whether to automatically match the image cache. Default value: false.
- cpu number
The amount of CPU resources allocated to the container group.
- dns
Config ContainerGroup Dns Config Args The structure of dnsConfig.
- eci
Security ContainerContext Group Eci Security Context Args The security context of the container group.
- eip
Bandwidth number The bandwidth of the EIP. The default value is
5
.- eip
Instance stringId The ID of the elastic IP address (EIP).
- host
Aliases ContainerGroup Host Alias Args[] HostAliases.
- image
Registry ContainerCredentials Group Image Registry Credential Args[] The image registry credential. The details see Block
image_registry_credential
.- init
Containers ContainerGroup Init Container Args[] The list of initContainers.
- insecure
Registry string The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- instance
Type string The type of the ECS instance.
- memory number
The amount of memory resources allocated to the container group.
- plain
Http stringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group stringId The ID of the resource group.
- restart
Policy string The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- {[key: string]: any}
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- volumes
Container
Group Volume Args[] The list of volumes.
- zone
Id string The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- container_
group_ strname The name of the container group.
- containers
Sequence[Container
Group Container Args] The list of containers.
- security_
group_ strid The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- vswitch_
id str The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- acr_
registry_ Sequence[Containerinfos Group Acr Registry Info Args] The ACR enterprise edition example properties.
- auto_
create_ booleip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- auto_
match_ boolimage_ cache Specifies whether to automatically match the image cache. Default value: false.
- cpu float
The amount of CPU resources allocated to the container group.
- dns_
config ContainerGroup Dns Config Args The structure of dnsConfig.
- eci_
security_ Containercontext Group Eci Security Context Args The security context of the container group.
- eip_
bandwidth int The bandwidth of the EIP. The default value is
5
.- eip_
instance_ strid The ID of the elastic IP address (EIP).
- host_
aliases Sequence[ContainerGroup Host Alias Args] HostAliases.
- image_
registry_ Sequence[Containercredentials Group Image Registry Credential Args] The image registry credential. The details see Block
image_registry_credential
.- init_
containers Sequence[ContainerGroup Init Container Args] The list of initContainers.
- insecure_
registry str The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- instance_
type str The type of the ECS instance.
- memory float
The amount of memory resources allocated to the container group.
- plain_
http_ strregistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- ram_
role_ strname The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource_
group_ strid The ID of the resource group.
- restart_
policy str The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- Mapping[str, Any]
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- volumes
Sequence[Container
Group Volume Args] The list of volumes.
- zone_
id str The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- container
Group StringName The name of the container group.
- containers List<Property Map>
The list of containers.
- security
Group StringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- vswitch
Id String The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- acr
Registry List<Property Map>Infos The ACR enterprise edition example properties.
- auto
Create BooleanEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- auto
Match BooleanImage Cache Specifies whether to automatically match the image cache. Default value: false.
- cpu Number
The amount of CPU resources allocated to the container group.
- dns
Config Property Map The structure of dnsConfig.
- eci
Security Property MapContext The security context of the container group.
- eip
Bandwidth Number The bandwidth of the EIP. The default value is
5
.- eip
Instance StringId The ID of the elastic IP address (EIP).
- host
Aliases List<Property Map> HostAliases.
- image
Registry List<Property Map>Credentials The image registry credential. The details see Block
image_registry_credential
.- init
Containers List<Property Map> The list of initContainers.
- insecure
Registry String The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- instance
Type String The type of the ECS instance.
- memory Number
The amount of memory resources allocated to the container group.
- plain
Http StringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- ram
Role StringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId The ID of the resource group.
- restart
Policy String The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- Map<Any>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- volumes List<Property Map>
The list of volumes.
- zone
Id String The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerGroup resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Internet
Ip string (Available in v1.170.0+) The Public IP of the container group.
- Intranet
Ip string (Available in v1.170.0+) The Private IP of the container group.
- Status string
The status of container group.
- Id string
The provider-assigned unique ID for this managed resource.
- Internet
Ip string (Available in v1.170.0+) The Public IP of the container group.
- Intranet
Ip string (Available in v1.170.0+) The Private IP of the container group.
- Status string
The status of container group.
- id String
The provider-assigned unique ID for this managed resource.
- internet
Ip String (Available in v1.170.0+) The Public IP of the container group.
- intranet
Ip String (Available in v1.170.0+) The Private IP of the container group.
- status String
The status of container group.
- id string
The provider-assigned unique ID for this managed resource.
- internet
Ip string (Available in v1.170.0+) The Public IP of the container group.
- intranet
Ip string (Available in v1.170.0+) The Private IP of the container group.
- status string
The status of container group.
- id str
The provider-assigned unique ID for this managed resource.
- internet_
ip str (Available in v1.170.0+) The Public IP of the container group.
- intranet_
ip str (Available in v1.170.0+) The Private IP of the container group.
- status str
The status of container group.
- id String
The provider-assigned unique ID for this managed resource.
- internet
Ip String (Available in v1.170.0+) The Public IP of the container group.
- intranet
Ip String (Available in v1.170.0+) The Private IP of the container group.
- status String
The status of container group.
Look up Existing ContainerGroup Resource
Get an existing ContainerGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContainerGroupState, opts?: CustomResourceOptions): ContainerGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acr_registry_infos: Optional[Sequence[ContainerGroupAcrRegistryInfoArgs]] = None,
auto_create_eip: Optional[bool] = None,
auto_match_image_cache: Optional[bool] = None,
container_group_name: Optional[str] = None,
containers: Optional[Sequence[ContainerGroupContainerArgs]] = None,
cpu: Optional[float] = None,
dns_config: Optional[ContainerGroupDnsConfigArgs] = None,
eci_security_context: Optional[ContainerGroupEciSecurityContextArgs] = None,
eip_bandwidth: Optional[int] = None,
eip_instance_id: Optional[str] = None,
host_aliases: Optional[Sequence[ContainerGroupHostAliasArgs]] = None,
image_registry_credentials: Optional[Sequence[ContainerGroupImageRegistryCredentialArgs]] = None,
init_containers: Optional[Sequence[ContainerGroupInitContainerArgs]] = None,
insecure_registry: Optional[str] = None,
instance_type: Optional[str] = None,
internet_ip: Optional[str] = None,
intranet_ip: Optional[str] = None,
memory: Optional[float] = None,
plain_http_registry: Optional[str] = None,
ram_role_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
restart_policy: Optional[str] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
volumes: Optional[Sequence[ContainerGroupVolumeArgs]] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> ContainerGroup
func GetContainerGroup(ctx *Context, name string, id IDInput, state *ContainerGroupState, opts ...ResourceOption) (*ContainerGroup, error)
public static ContainerGroup Get(string name, Input<string> id, ContainerGroupState? state, CustomResourceOptions? opts = null)
public static ContainerGroup get(String name, Output<String> id, ContainerGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acr
Registry List<Pulumi.Infos Ali Cloud. Eci. Inputs. Container Group Acr Registry Info Args> The ACR enterprise edition example properties.
- Auto
Create boolEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- Auto
Match boolImage Cache Specifies whether to automatically match the image cache. Default value: false.
- Container
Group stringName The name of the container group.
- Containers
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Args> The list of containers.
- Cpu double
The amount of CPU resources allocated to the container group.
- Dns
Config Pulumi.Ali Cloud. Eci. Inputs. Container Group Dns Config Args The structure of dnsConfig.
- Eci
Security Pulumi.Context Ali Cloud. Eci. Inputs. Container Group Eci Security Context Args The security context of the container group.
- Eip
Bandwidth int The bandwidth of the EIP. The default value is
5
.- Eip
Instance stringId The ID of the elastic IP address (EIP).
- Host
Aliases List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Host Alias Args> HostAliases.
- Image
Registry List<Pulumi.Credentials Ali Cloud. Eci. Inputs. Container Group Image Registry Credential Args> The image registry credential. The details see Block
image_registry_credential
.- Init
Containers List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container Args> The list of initContainers.
- Insecure
Registry string The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- Instance
Type string The type of the ECS instance.
- Internet
Ip string (Available in v1.170.0+) The Public IP of the container group.
- Intranet
Ip string (Available in v1.170.0+) The Private IP of the container group.
- Memory double
The amount of memory resources allocated to the container group.
- Plain
Http stringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- Ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId The ID of the resource group.
- Restart
Policy string The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- Security
Group stringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- Status string
The status of container group.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- Volumes
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Volume Args> The list of volumes.
- Vswitch
Id string The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- Zone
Id string The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- Acr
Registry []ContainerInfos Group Acr Registry Info Args The ACR enterprise edition example properties.
- Auto
Create boolEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- Auto
Match boolImage Cache Specifies whether to automatically match the image cache. Default value: false.
- Container
Group stringName The name of the container group.
- Containers
[]Container
Group Container Args The list of containers.
- Cpu float64
The amount of CPU resources allocated to the container group.
- Dns
Config ContainerGroup Dns Config Args The structure of dnsConfig.
- Eci
Security ContainerContext Group Eci Security Context Args The security context of the container group.
- Eip
Bandwidth int The bandwidth of the EIP. The default value is
5
.- Eip
Instance stringId The ID of the elastic IP address (EIP).
- Host
Aliases []ContainerGroup Host Alias Args HostAliases.
- Image
Registry []ContainerCredentials Group Image Registry Credential Args The image registry credential. The details see Block
image_registry_credential
.- Init
Containers []ContainerGroup Init Container Args The list of initContainers.
- Insecure
Registry string The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- Instance
Type string The type of the ECS instance.
- Internet
Ip string (Available in v1.170.0+) The Public IP of the container group.
- Intranet
Ip string (Available in v1.170.0+) The Private IP of the container group.
- Memory float64
The amount of memory resources allocated to the container group.
- Plain
Http stringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- Ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId The ID of the resource group.
- Restart
Policy string The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- Security
Group stringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- Status string
The status of container group.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- Volumes
[]Container
Group Volume Args The list of volumes.
- Vswitch
Id string The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- Zone
Id string The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- acr
Registry List<ContainerInfos Group Acr Registry Info Args> The ACR enterprise edition example properties.
- auto
Create BooleanEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- auto
Match BooleanImage Cache Specifies whether to automatically match the image cache. Default value: false.
- container
Group StringName The name of the container group.
- containers
List<Container
Group Container Args> The list of containers.
- cpu Double
The amount of CPU resources allocated to the container group.
- dns
Config ContainerGroup Dns Config Args The structure of dnsConfig.
- eci
Security ContainerContext Group Eci Security Context Args The security context of the container group.
- eip
Bandwidth Integer The bandwidth of the EIP. The default value is
5
.- eip
Instance StringId The ID of the elastic IP address (EIP).
- host
Aliases List<ContainerGroup Host Alias Args> HostAliases.
- image
Registry List<ContainerCredentials Group Image Registry Credential Args> The image registry credential. The details see Block
image_registry_credential
.- init
Containers List<ContainerGroup Init Container Args> The list of initContainers.
- insecure
Registry String The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- instance
Type String The type of the ECS instance.
- internet
Ip String (Available in v1.170.0+) The Public IP of the container group.
- intranet
Ip String (Available in v1.170.0+) The Private IP of the container group.
- memory Double
The amount of memory resources allocated to the container group.
- plain
Http StringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- ram
Role StringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId The ID of the resource group.
- restart
Policy String The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- security
Group StringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- status String
The status of container group.
- Map<String,Object>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- volumes
List<Container
Group Volume Args> The list of volumes.
- vswitch
Id String The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- zone
Id String The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- acr
Registry ContainerInfos Group Acr Registry Info Args[] The ACR enterprise edition example properties.
- auto
Create booleanEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- auto
Match booleanImage Cache Specifies whether to automatically match the image cache. Default value: false.
- container
Group stringName The name of the container group.
- containers
Container
Group Container Args[] The list of containers.
- cpu number
The amount of CPU resources allocated to the container group.
- dns
Config ContainerGroup Dns Config Args The structure of dnsConfig.
- eci
Security ContainerContext Group Eci Security Context Args The security context of the container group.
- eip
Bandwidth number The bandwidth of the EIP. The default value is
5
.- eip
Instance stringId The ID of the elastic IP address (EIP).
- host
Aliases ContainerGroup Host Alias Args[] HostAliases.
- image
Registry ContainerCredentials Group Image Registry Credential Args[] The image registry credential. The details see Block
image_registry_credential
.- init
Containers ContainerGroup Init Container Args[] The list of initContainers.
- insecure
Registry string The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- instance
Type string The type of the ECS instance.
- internet
Ip string (Available in v1.170.0+) The Public IP of the container group.
- intranet
Ip string (Available in v1.170.0+) The Private IP of the container group.
- memory number
The amount of memory resources allocated to the container group.
- plain
Http stringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- ram
Role stringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group stringId The ID of the resource group.
- restart
Policy string The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- security
Group stringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- status string
The status of container group.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- volumes
Container
Group Volume Args[] The list of volumes.
- vswitch
Id string The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- zone
Id string The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- acr_
registry_ Sequence[Containerinfos Group Acr Registry Info Args] The ACR enterprise edition example properties.
- auto_
create_ booleip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- auto_
match_ boolimage_ cache Specifies whether to automatically match the image cache. Default value: false.
- container_
group_ strname The name of the container group.
- containers
Sequence[Container
Group Container Args] The list of containers.
- cpu float
The amount of CPU resources allocated to the container group.
- dns_
config ContainerGroup Dns Config Args The structure of dnsConfig.
- eci_
security_ Containercontext Group Eci Security Context Args The security context of the container group.
- eip_
bandwidth int The bandwidth of the EIP. The default value is
5
.- eip_
instance_ strid The ID of the elastic IP address (EIP).
- host_
aliases Sequence[ContainerGroup Host Alias Args] HostAliases.
- image_
registry_ Sequence[Containercredentials Group Image Registry Credential Args] The image registry credential. The details see Block
image_registry_credential
.- init_
containers Sequence[ContainerGroup Init Container Args] The list of initContainers.
- insecure_
registry str The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- instance_
type str The type of the ECS instance.
- internet_
ip str (Available in v1.170.0+) The Public IP of the container group.
- intranet_
ip str (Available in v1.170.0+) The Private IP of the container group.
- memory float
The amount of memory resources allocated to the container group.
- plain_
http_ strregistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- ram_
role_ strname The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource_
group_ strid The ID of the resource group.
- restart_
policy str The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- security_
group_ strid The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- status str
The status of container group.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- volumes
Sequence[Container
Group Volume Args] The list of volumes.
- vswitch_
id str The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- zone_
id str The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- acr
Registry List<Property Map>Infos The ACR enterprise edition example properties.
- auto
Create BooleanEip Specifies whether to automatically create an EIP and bind the EIP to the elastic container instance.
- auto
Match BooleanImage Cache Specifies whether to automatically match the image cache. Default value: false.
- container
Group StringName The name of the container group.
- containers List<Property Map>
The list of containers.
- cpu Number
The amount of CPU resources allocated to the container group.
- dns
Config Property Map The structure of dnsConfig.
- eci
Security Property MapContext The security context of the container group.
- eip
Bandwidth Number The bandwidth of the EIP. The default value is
5
.- eip
Instance StringId The ID of the elastic IP address (EIP).
- host
Aliases List<Property Map> HostAliases.
- image
Registry List<Property Map>Credentials The image registry credential. The details see Block
image_registry_credential
.- init
Containers List<Property Map> The list of initContainers.
- insecure
Registry String The address of the self-built mirror warehouse. When creating an image cache using an image in a self-built image repository with a self-signed certificate, you need to configure this parameter to skip certificate authentication to avoid image pull failure due to certificate authentication failure.
- instance
Type String The type of the ECS instance.
- internet
Ip String (Available in v1.170.0+) The Public IP of the container group.
- intranet
Ip String (Available in v1.170.0+) The Private IP of the container group.
- memory Number
The amount of memory resources allocated to the container group.
- plain
Http StringRegistry The address of the self-built mirror warehouse. When creating an image cache from an image in a self-built image repository using the HTTP protocol, you need to configure this parameter so that the ECI uses the HTTP protocol to pull the image to avoid image pull failure due to different protocols.
- ram
Role StringName The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId The ID of the resource group.
- restart
Policy String The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
.- security
Group StringId The ID of the security group to which the container group belongs. Container groups within the same security group can access each other.
- status String
The status of container group.
- Map<Any>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
- volumes List<Property Map>
The list of volumes.
- vswitch
Id String The ID of the VSwitch. Currently, container groups can only be deployed in VPC networks. The number of IP addresses in the VSwitch CIDR block determines the maximum number of container groups that can be created in the VSwitch. Before you can create an ECI instance, plan the CIDR block of the VSwitch.
- zone
Id String The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
Supporting Types
ContainerGroupAcrRegistryInfo
- Domains List<string>
The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
- Instance
Id string The ACR enterprise edition example ID.
- Instance
Name string The name of the ACR enterprise edition instance.
- Region
Id string The ACR enterprise edition instance belongs to the region.
- Domains []string
The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
- Instance
Id string The ACR enterprise edition example ID.
- Instance
Name string The name of the ACR enterprise edition instance.
- Region
Id string The ACR enterprise edition instance belongs to the region.
- domains List<String>
The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
- instance
Id String The ACR enterprise edition example ID.
- instance
Name String The name of the ACR enterprise edition instance.
- region
Id String The ACR enterprise edition instance belongs to the region.
- domains string[]
The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
- instance
Id string The ACR enterprise edition example ID.
- instance
Name string The name of the ACR enterprise edition instance.
- region
Id string The ACR enterprise edition instance belongs to the region.
- domains Sequence[str]
The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
- instance_
id str The ACR enterprise edition example ID.
- instance_
name str The name of the ACR enterprise edition instance.
- region_
id str The ACR enterprise edition instance belongs to the region.
- domains List<String>
The domain name of the ACR Enterprise Edition instance. Defaults to all domain names of the corresponding instance. Support specifying individual domain names, multiple separated by half comma.
- instance
Id String The ACR enterprise edition example ID.
- instance
Name String The name of the ACR enterprise edition instance.
- region
Id String The ACR enterprise edition instance belongs to the region.
ContainerGroupContainer
- Image string
The image of the container.
- Name string
The name of the volume.
- Args List<string>
The arguments passed to the commands.
- Commands List<string>
The commands run by the init container.
- Cpu double
The amount of CPU resources allocated to the container group.
- Environment
Vars List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Environment Var> The structure of environmentVars.
- Gpu int
The number GPUs.
- Image
Pull stringPolicy The restart policy of the image.
- Liveness
Probes List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Liveness Probe> The health check of the container.
- Memory double
The amount of memory resources allocated to the container group.
- Ports
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Port> The structure of port.
- Readiness
Probes List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Readiness Probe> The health check of the container.
- Ready bool
- Restart
Count int - Volume
Mounts List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Volume Mount> The structure of volumeMounts.
- Working
Dir string The working directory of the container.
- Image string
The image of the container.
- Name string
The name of the volume.
- Args []string
The arguments passed to the commands.
- Commands []string
The commands run by the init container.
- Cpu float64
The amount of CPU resources allocated to the container group.
- Environment
Vars []ContainerGroup Container Environment Var The structure of environmentVars.
- Gpu int
The number GPUs.
- Image
Pull stringPolicy The restart policy of the image.
- Liveness
Probes []ContainerGroup Container Liveness Probe The health check of the container.
- Memory float64
The amount of memory resources allocated to the container group.
- Ports
[]Container
Group Container Port The structure of port.
- Readiness
Probes []ContainerGroup Container Readiness Probe The health check of the container.
- Ready bool
- Restart
Count int - Volume
Mounts []ContainerGroup Container Volume Mount The structure of volumeMounts.
- Working
Dir string The working directory of the container.
- image String
The image of the container.
- name String
The name of the volume.
- args List<String>
The arguments passed to the commands.
- commands List<String>
The commands run by the init container.
- cpu Double
The amount of CPU resources allocated to the container group.
- environment
Vars List<ContainerGroup Container Environment Var> The structure of environmentVars.
- gpu Integer
The number GPUs.
- image
Pull StringPolicy The restart policy of the image.
- liveness
Probes List<ContainerGroup Container Liveness Probe> The health check of the container.
- memory Double
The amount of memory resources allocated to the container group.
- ports
List<Container
Group Container Port> The structure of port.
- readiness
Probes List<ContainerGroup Container Readiness Probe> The health check of the container.
- ready Boolean
- restart
Count Integer - volume
Mounts List<ContainerGroup Container Volume Mount> The structure of volumeMounts.
- working
Dir String The working directory of the container.
- image string
The image of the container.
- name string
The name of the volume.
- args string[]
The arguments passed to the commands.
- commands string[]
The commands run by the init container.
- cpu number
The amount of CPU resources allocated to the container group.
- environment
Vars ContainerGroup Container Environment Var[] The structure of environmentVars.
- gpu number
The number GPUs.
- image
Pull stringPolicy The restart policy of the image.
- liveness
Probes ContainerGroup Container Liveness Probe[] The health check of the container.
- memory number
The amount of memory resources allocated to the container group.
- ports
Container
Group Container Port[] The structure of port.
- readiness
Probes ContainerGroup Container Readiness Probe[] The health check of the container.
- ready boolean
- restart
Count number - volume
Mounts ContainerGroup Container Volume Mount[] The structure of volumeMounts.
- working
Dir string The working directory of the container.
- image str
The image of the container.
- name str
The name of the volume.
- args Sequence[str]
The arguments passed to the commands.
- commands Sequence[str]
The commands run by the init container.
- cpu float
The amount of CPU resources allocated to the container group.
- environment_
vars Sequence[ContainerGroup Container Environment Var] The structure of environmentVars.
- gpu int
The number GPUs.
- image_
pull_ strpolicy The restart policy of the image.
- liveness_
probes Sequence[ContainerGroup Container Liveness Probe] The health check of the container.
- memory float
The amount of memory resources allocated to the container group.
- ports
Sequence[Container
Group Container Port] The structure of port.
- readiness_
probes Sequence[ContainerGroup Container Readiness Probe] The health check of the container.
- ready bool
- restart_
count int - volume_
mounts Sequence[ContainerGroup Container Volume Mount] The structure of volumeMounts.
- working_
dir str The working directory of the container.
- image String
The image of the container.
- name String
The name of the volume.
- args List<String>
The arguments passed to the commands.
- commands List<String>
The commands run by the init container.
- cpu Number
The amount of CPU resources allocated to the container group.
- environment
Vars List<Property Map> The structure of environmentVars.
- gpu Number
The number GPUs.
- image
Pull StringPolicy The restart policy of the image.
- liveness
Probes List<Property Map> The health check of the container.
- memory Number
The amount of memory resources allocated to the container group.
- ports List<Property Map>
The structure of port.
- readiness
Probes List<Property Map> The health check of the container.
- ready Boolean
- restart
Count Number - volume
Mounts List<Property Map> The structure of volumeMounts.
- working
Dir String The working directory of the container.
ContainerGroupContainerEnvironmentVar
ContainerGroupContainerLivenessProbe
- Execs
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Liveness Probe Exec> Health check using command line method.
- Failure
Threshold int Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- Http
Gets List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Liveness Probe Http Get> Health check using HTTP request method.
- Initial
Delay intSeconds Check the time to start execution, calculated from the completion of container startup.
- Period
Seconds int Buffer time for the program to handle operations before closing.
- Success
Threshold int The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- Tcp
Sockets List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Liveness Probe Tcp Socket> Health check using TCP socket method.
- Timeout
Seconds int Check the timeout, the default is 1 second, the minimum is 1 second.
- Execs
[]Container
Group Container Liveness Probe Exec Health check using command line method.
- Failure
Threshold int Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- Http
Gets []ContainerGroup Container Liveness Probe Http Get Health check using HTTP request method.
- Initial
Delay intSeconds Check the time to start execution, calculated from the completion of container startup.
- Period
Seconds int Buffer time for the program to handle operations before closing.
- Success
Threshold int The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- Tcp
Sockets []ContainerGroup Container Liveness Probe Tcp Socket Health check using TCP socket method.
- Timeout
Seconds int Check the timeout, the default is 1 second, the minimum is 1 second.
- execs
List<Container
Group Container Liveness Probe Exec> Health check using command line method.
- failure
Threshold Integer Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- http
Gets List<ContainerGroup Container Liveness Probe Http Get> Health check using HTTP request method.
- initial
Delay IntegerSeconds Check the time to start execution, calculated from the completion of container startup.
- period
Seconds Integer Buffer time for the program to handle operations before closing.
- success
Threshold Integer The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- tcp
Sockets List<ContainerGroup Container Liveness Probe Tcp Socket> Health check using TCP socket method.
- timeout
Seconds Integer Check the timeout, the default is 1 second, the minimum is 1 second.
- execs
Container
Group Container Liveness Probe Exec[] Health check using command line method.
- failure
Threshold number Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- http
Gets ContainerGroup Container Liveness Probe Http Get[] Health check using HTTP request method.
- initial
Delay numberSeconds Check the time to start execution, calculated from the completion of container startup.
- period
Seconds number Buffer time for the program to handle operations before closing.
- success
Threshold number The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- tcp
Sockets ContainerGroup Container Liveness Probe Tcp Socket[] Health check using TCP socket method.
- timeout
Seconds number Check the timeout, the default is 1 second, the minimum is 1 second.
- execs
Sequence[Container
Group Container Liveness Probe Exec] Health check using command line method.
- failure_
threshold int Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- http_
gets Sequence[ContainerGroup Container Liveness Probe Http Get] Health check using HTTP request method.
- initial_
delay_ intseconds Check the time to start execution, calculated from the completion of container startup.
- period_
seconds int Buffer time for the program to handle operations before closing.
- success_
threshold int The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- tcp_
sockets Sequence[ContainerGroup Container Liveness Probe Tcp Socket] Health check using TCP socket method.
- timeout_
seconds int Check the timeout, the default is 1 second, the minimum is 1 second.
- execs List<Property Map>
Health check using command line method.
- failure
Threshold Number Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- http
Gets List<Property Map> Health check using HTTP request method.
- initial
Delay NumberSeconds Check the time to start execution, calculated from the completion of container startup.
- period
Seconds Number Buffer time for the program to handle operations before closing.
- success
Threshold Number The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- tcp
Sockets List<Property Map> Health check using TCP socket method.
- timeout
Seconds Number Check the timeout, the default is 1 second, the minimum is 1 second.
ContainerGroupContainerLivenessProbeExec
- Commands List<string>
The commands run by the init container.
- Commands []string
The commands run by the init container.
- commands List<String>
The commands run by the init container.
- commands string[]
The commands run by the init container.
- commands Sequence[str]
The commands run by the init container.
- commands List<String>
The commands run by the init container.
ContainerGroupContainerLivenessProbeHttpGet
ContainerGroupContainerLivenessProbeTcpSocket
- Port int
The port number. Valid values: 1 to 65535.
- Port int
The port number. Valid values: 1 to 65535.
- port Integer
The port number. Valid values: 1 to 65535.
- port number
The port number. Valid values: 1 to 65535.
- port int
The port number. Valid values: 1 to 65535.
- port Number
The port number. Valid values: 1 to 65535.
ContainerGroupContainerPort
ContainerGroupContainerReadinessProbe
- Execs
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Readiness Probe Exec> Health check using command line method.
- Failure
Threshold int Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- Http
Gets List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Readiness Probe Http Get> Health check using HTTP request method.
- Initial
Delay intSeconds Check the time to start execution, calculated from the completion of container startup.
- Period
Seconds int Buffer time for the program to handle operations before closing.
- Success
Threshold int The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- Tcp
Sockets List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Readiness Probe Tcp Socket> Health check using TCP socket method.
- Timeout
Seconds int Check the timeout, the default is 1 second, the minimum is 1 second.
- Execs
[]Container
Group Container Readiness Probe Exec Health check using command line method.
- Failure
Threshold int Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- Http
Gets []ContainerGroup Container Readiness Probe Http Get Health check using HTTP request method.
- Initial
Delay intSeconds Check the time to start execution, calculated from the completion of container startup.
- Period
Seconds int Buffer time for the program to handle operations before closing.
- Success
Threshold int The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- Tcp
Sockets []ContainerGroup Container Readiness Probe Tcp Socket Health check using TCP socket method.
- Timeout
Seconds int Check the timeout, the default is 1 second, the minimum is 1 second.
- execs
List<Container
Group Container Readiness Probe Exec> Health check using command line method.
- failure
Threshold Integer Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- http
Gets List<ContainerGroup Container Readiness Probe Http Get> Health check using HTTP request method.
- initial
Delay IntegerSeconds Check the time to start execution, calculated from the completion of container startup.
- period
Seconds Integer Buffer time for the program to handle operations before closing.
- success
Threshold Integer The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- tcp
Sockets List<ContainerGroup Container Readiness Probe Tcp Socket> Health check using TCP socket method.
- timeout
Seconds Integer Check the timeout, the default is 1 second, the minimum is 1 second.
- execs
Container
Group Container Readiness Probe Exec[] Health check using command line method.
- failure
Threshold number Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- http
Gets ContainerGroup Container Readiness Probe Http Get[] Health check using HTTP request method.
- initial
Delay numberSeconds Check the time to start execution, calculated from the completion of container startup.
- period
Seconds number Buffer time for the program to handle operations before closing.
- success
Threshold number The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- tcp
Sockets ContainerGroup Container Readiness Probe Tcp Socket[] Health check using TCP socket method.
- timeout
Seconds number Check the timeout, the default is 1 second, the minimum is 1 second.
- execs
Sequence[Container
Group Container Readiness Probe Exec] Health check using command line method.
- failure_
threshold int Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- http_
gets Sequence[ContainerGroup Container Readiness Probe Http Get] Health check using HTTP request method.
- initial_
delay_ intseconds Check the time to start execution, calculated from the completion of container startup.
- period_
seconds int Buffer time for the program to handle operations before closing.
- success_
threshold int The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- tcp_
sockets Sequence[ContainerGroup Container Readiness Probe Tcp Socket] Health check using TCP socket method.
- timeout_
seconds int Check the timeout, the default is 1 second, the minimum is 1 second.
- execs List<Property Map>
Health check using command line method.
- failure
Threshold Number Threshold for the number of checks that are determined to have failed since the last successful check (must be consecutive failures), default is 3.
- http
Gets List<Property Map> Health check using HTTP request method.
- initial
Delay NumberSeconds Check the time to start execution, calculated from the completion of container startup.
- period
Seconds Number Buffer time for the program to handle operations before closing.
- success
Threshold Number The check count threshold for re-identifying successful checks since the last failed check (must be consecutive successes), default is 1. Current must be 1.
- tcp
Sockets List<Property Map> Health check using TCP socket method.
- timeout
Seconds Number Check the timeout, the default is 1 second, the minimum is 1 second.
ContainerGroupContainerReadinessProbeExec
- Commands List<string>
The commands run by the init container.
- Commands []string
The commands run by the init container.
- commands List<String>
The commands run by the init container.
- commands string[]
The commands run by the init container.
- commands Sequence[str]
The commands run by the init container.
- commands List<String>
The commands run by the init container.
ContainerGroupContainerReadinessProbeHttpGet
ContainerGroupContainerReadinessProbeTcpSocket
- Port int
The port number. Valid values: 1 to 65535.
- Port int
The port number. Valid values: 1 to 65535.
- port Integer
The port number. Valid values: 1 to 65535.
- port number
The port number. Valid values: 1 to 65535.
- port int
The port number. Valid values: 1 to 65535.
- port Number
The port number. Valid values: 1 to 65535.
ContainerGroupContainerVolumeMount
- mount_
path str The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
- name str
The name of the volume.
- read_
only bool Default to
false
.
ContainerGroupDnsConfig
- Name
Servers List<string> The list of DNS server IP addresses.
- Options
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Dns Config Option> The structure of options.
- Searches List<string>
The list of DNS lookup domains.
- Name
Servers []string The list of DNS server IP addresses.
- Options
[]Container
Group Dns Config Option The structure of options.
- Searches []string
The list of DNS lookup domains.
- name
Servers List<String> The list of DNS server IP addresses.
- options
List<Container
Group Dns Config Option> The structure of options.
- searches List<String>
The list of DNS lookup domains.
- name
Servers string[] The list of DNS server IP addresses.
- options
Container
Group Dns Config Option[] The structure of options.
- searches string[]
The list of DNS lookup domains.
- name_
servers Sequence[str] The list of DNS server IP addresses.
- options
Sequence[Container
Group Dns Config Option] The structure of options.
- searches Sequence[str]
The list of DNS lookup domains.
- name
Servers List<String> The list of DNS server IP addresses.
- options List<Property Map>
The structure of options.
- searches List<String>
The list of DNS lookup domains.
ContainerGroupDnsConfigOption
ContainerGroupEciSecurityContext
- sysctls List<Property Map>
system.
ContainerGroupEciSecurityContextSysctl
ContainerGroupHostAlias
ContainerGroupImageRegistryCredential
- Password string
The password used to log on to the image repository. It is required when
image_registry_credential
is configured.- Server string
The address of the image repository. It is required when
image_registry_credential
is configured.- User
Name string The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- Password string
The password used to log on to the image repository. It is required when
image_registry_credential
is configured.- Server string
The address of the image repository. It is required when
image_registry_credential
is configured.- User
Name string The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- password String
The password used to log on to the image repository. It is required when
image_registry_credential
is configured.- server String
The address of the image repository. It is required when
image_registry_credential
is configured.- user
Name String The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- password string
The password used to log on to the image repository. It is required when
image_registry_credential
is configured.- server string
The address of the image repository. It is required when
image_registry_credential
is configured.- user
Name string The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- password str
The password used to log on to the image repository. It is required when
image_registry_credential
is configured.- server str
The address of the image repository. It is required when
image_registry_credential
is configured.- user_
name str The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
- password String
The password used to log on to the image repository. It is required when
image_registry_credential
is configured.- server String
The address of the image repository. It is required when
image_registry_credential
is configured.- user
Name String The username used to log on to the image repository. It is required when
image_registry_credential
is configured.
ContainerGroupInitContainer
- Args List<string>
The arguments passed to the commands.
- Commands List<string>
The commands run by the init container.
- Cpu double
The amount of CPU resources allocated to the container group.
- Environment
Vars List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container Environment Var> The structure of environmentVars.
- Gpu int
The number GPUs.
- Image string
The image of the container.
- Image
Pull stringPolicy The restart policy of the image.
- Memory double
The amount of memory resources allocated to the container group.
- Name string
The name of the volume.
- Ports
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Init Container Port> The structure of port.
- Ready bool
- Restart
Count int - Volume
Mounts List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container Volume Mount> The structure of volumeMounts.
- Working
Dir string The working directory of the container.
- Args []string
The arguments passed to the commands.
- Commands []string
The commands run by the init container.
- Cpu float64
The amount of CPU resources allocated to the container group.
- Environment
Vars []ContainerGroup Init Container Environment Var The structure of environmentVars.
- Gpu int
The number GPUs.
- Image string
The image of the container.
- Image
Pull stringPolicy The restart policy of the image.
- Memory float64
The amount of memory resources allocated to the container group.
- Name string
The name of the volume.
- Ports
[]Container
Group Init Container Port The structure of port.
- Ready bool
- Restart
Count int - Volume
Mounts []ContainerGroup Init Container Volume Mount The structure of volumeMounts.
- Working
Dir string The working directory of the container.
- args List<String>
The arguments passed to the commands.
- commands List<String>
The commands run by the init container.
- cpu Double
The amount of CPU resources allocated to the container group.
- environment
Vars List<ContainerGroup Init Container Environment Var> The structure of environmentVars.
- gpu Integer
The number GPUs.
- image String
The image of the container.
- image
Pull StringPolicy The restart policy of the image.
- memory Double
The amount of memory resources allocated to the container group.
- name String
The name of the volume.
- ports
List<Container
Group Init Container Port> The structure of port.
- ready Boolean
- restart
Count Integer - volume
Mounts List<ContainerGroup Init Container Volume Mount> The structure of volumeMounts.
- working
Dir String The working directory of the container.
- args string[]
The arguments passed to the commands.
- commands string[]
The commands run by the init container.
- cpu number
The amount of CPU resources allocated to the container group.
- environment
Vars ContainerGroup Init Container Environment Var[] The structure of environmentVars.
- gpu number
The number GPUs.
- image string
The image of the container.
- image
Pull stringPolicy The restart policy of the image.
- memory number
The amount of memory resources allocated to the container group.
- name string
The name of the volume.
- ports
Container
Group Init Container Port[] The structure of port.
- ready boolean
- restart
Count number - volume
Mounts ContainerGroup Init Container Volume Mount[] The structure of volumeMounts.
- working
Dir string The working directory of the container.
- args Sequence[str]
The arguments passed to the commands.
- commands Sequence[str]
The commands run by the init container.
- cpu float
The amount of CPU resources allocated to the container group.
- environment_
vars Sequence[ContainerGroup Init Container Environment Var] The structure of environmentVars.
- gpu int
The number GPUs.
- image str
The image of the container.
- image_
pull_ strpolicy The restart policy of the image.
- memory float
The amount of memory resources allocated to the container group.
- name str
The name of the volume.
- ports
Sequence[Container
Group Init Container Port] The structure of port.
- ready bool
- restart_
count int - volume_
mounts Sequence[ContainerGroup Init Container Volume Mount] The structure of volumeMounts.
- working_
dir str The working directory of the container.
- args List<String>
The arguments passed to the commands.
- commands List<String>
The commands run by the init container.
- cpu Number
The amount of CPU resources allocated to the container group.
- environment
Vars List<Property Map> The structure of environmentVars.
- gpu Number
The number GPUs.
- image String
The image of the container.
- image
Pull StringPolicy The restart policy of the image.
- memory Number
The amount of memory resources allocated to the container group.
- name String
The name of the volume.
- ports List<Property Map>
The structure of port.
- ready Boolean
- restart
Count Number - volume
Mounts List<Property Map> The structure of volumeMounts.
- working
Dir String The working directory of the container.
ContainerGroupInitContainerEnvironmentVar
ContainerGroupInitContainerPort
ContainerGroupInitContainerVolumeMount
- mount_
path str The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
- name str
The name of the volume.
- read_
only bool Default to
false
.
ContainerGroupVolume
- Config
File List<Pulumi.Volume Config File To Paths Ali Cloud. Eci. Inputs. Container Group Volume Config File Volume Config File To Path> ConfigFileVolumeConfigFileToPaths.
- Disk
Volume stringDisk Id The ID of DiskVolume.
- Disk
Volume stringFs Type The system type of DiskVolume.
- Flex
Volume stringDriver The name of the FlexVolume driver.
- Flex
Volume stringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- Flex
Volume stringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- Name string
The name of the volume.
- Nfs
Volume stringPath The path to the NFS volume.
- Nfs
Volume boolRead Only The nfs volume read only. Default to
false
.- Nfs
Volume stringServer The address of the NFS server.
NOTE: Every volumes mounted must have name and type attributes.
- Type string
The type of the volume.
- Config
File []ContainerVolume Config File To Paths Group Volume Config File Volume Config File To Path ConfigFileVolumeConfigFileToPaths.
- Disk
Volume stringDisk Id The ID of DiskVolume.
- Disk
Volume stringFs Type The system type of DiskVolume.
- Flex
Volume stringDriver The name of the FlexVolume driver.
- Flex
Volume stringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- Flex
Volume stringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- Name string
The name of the volume.
- Nfs
Volume stringPath The path to the NFS volume.
- Nfs
Volume boolRead Only The nfs volume read only. Default to
false
.- Nfs
Volume stringServer The address of the NFS server.
NOTE: Every volumes mounted must have name and type attributes.
- Type string
The type of the volume.
- config
File List<ContainerVolume Config File To Paths Group Volume Config File Volume Config File To Path> ConfigFileVolumeConfigFileToPaths.
- disk
Volume StringDisk Id The ID of DiskVolume.
- disk
Volume StringFs Type The system type of DiskVolume.
- flex
Volume StringDriver The name of the FlexVolume driver.
- flex
Volume StringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume StringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- name String
The name of the volume.
- nfs
Volume StringPath The path to the NFS volume.
- nfs
Volume BooleanRead Only The nfs volume read only. Default to
false
.- nfs
Volume StringServer The address of the NFS server.
NOTE: Every volumes mounted must have name and type attributes.
- type String
The type of the volume.
- config
File ContainerVolume Config File To Paths Group Volume Config File Volume Config File To Path[] ConfigFileVolumeConfigFileToPaths.
- disk
Volume stringDisk Id The ID of DiskVolume.
- disk
Volume stringFs Type The system type of DiskVolume.
- flex
Volume stringDriver The name of the FlexVolume driver.
- flex
Volume stringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume stringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- name string
The name of the volume.
- nfs
Volume stringPath The path to the NFS volume.
- nfs
Volume booleanRead Only The nfs volume read only. Default to
false
.- nfs
Volume stringServer The address of the NFS server.
NOTE: Every volumes mounted must have name and type attributes.
- type string
The type of the volume.
- config_
file_ Sequence[Containervolume_ config_ file_ to_ paths Group Volume Config File Volume Config File To Path] ConfigFileVolumeConfigFileToPaths.
- disk_
volume_ strdisk_ id The ID of DiskVolume.
- disk_
volume_ strfs_ type The system type of DiskVolume.
- flex_
volume_ strdriver The name of the FlexVolume driver.
- flex_
volume_ strfs_ type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex_
volume_ stroptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- name str
The name of the volume.
- nfs_
volume_ strpath The path to the NFS volume.
- nfs_
volume_ boolread_ only The nfs volume read only. Default to
false
.- nfs_
volume_ strserver The address of the NFS server.
NOTE: Every volumes mounted must have name and type attributes.
- type str
The type of the volume.
- config
File List<Property Map>Volume Config File To Paths ConfigFileVolumeConfigFileToPaths.
- disk
Volume StringDisk Id The ID of DiskVolume.
- disk
Volume StringFs Type The system type of DiskVolume.
- flex
Volume StringDriver The name of the FlexVolume driver.
- flex
Volume StringFs Type The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume StringOptions The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string.
- name String
The name of the volume.
- nfs
Volume StringPath The path to the NFS volume.
- nfs
Volume BooleanRead Only The nfs volume read only. Default to
false
.- nfs
Volume StringServer The address of the NFS server.
NOTE: Every volumes mounted must have name and type attributes.
- type String
The type of the volume.
ContainerGroupVolumeConfigFileVolumeConfigFileToPath
Import
ECI Container Group can be imported using the id, e.g.
$ pulumi import alicloud:eci/containerGroup:ContainerGroup example <container_group_id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.