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 since v1.111.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const default = alicloud.eci.getZones({});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.0.0.0/8",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
cidrBlock: "10.1.0.0/16",
vpcId: defaultNetwork.id,
zoneId: _default.then(_default => _default.zones?.[0]?.zoneIds?.[0]),
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: name,
vpcId: defaultNetwork.id,
});
const defaultContainerGroup = new alicloud.eci.ContainerGroup("default", {
containerGroupName: name,
cpu: 8,
memory: 16,
restartPolicy: "OnFailure",
securityGroupId: defaultSecurityGroup.id,
vswitchId: defaultSwitch.id,
autoCreateEip: true,
tags: {
Created: "TF",
For: "example",
},
containers: [{
image: "registry.cn-beijing.aliyuncs.com/eci_open/nginx:alpine",
name: "nginx",
workingDir: "/tmp/nginx",
imagePullPolicy: "IfNotPresent",
commands: [
"/bin/sh",
"-c",
"sleep 9999",
],
volumeMounts: [{
mountPath: "/tmp/example",
readOnly: false,
name: "empty1",
}],
ports: [{
port: 80,
protocol: "TCP",
}],
environmentVars: [{
key: "name",
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"],
}],
}],
}],
initContainers: [{
name: "init-busybox",
image: "registry.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",
},
],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.eci.get_zones()
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.0.0.0/8")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
cidr_block="10.1.0.0/16",
vpc_id=default_network.id,
zone_id=default.zones[0].zone_ids[0])
default_security_group = alicloud.ecs.SecurityGroup("default",
name=name,
vpc_id=default_network.id)
default_container_group = alicloud.eci.ContainerGroup("default",
container_group_name=name,
cpu=8,
memory=16,
restart_policy="OnFailure",
security_group_id=default_security_group.id,
vswitch_id=default_switch.id,
auto_create_eip=True,
tags={
"Created": "TF",
"For": "example",
},
containers=[{
"image": "registry.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": [{
"mount_path": "/tmp/example",
"read_only": False,
"name": "empty1",
}],
"ports": [{
"port": 80,
"protocol": "TCP",
}],
"environment_vars": [{
"key": "name",
"value": "nginx",
}],
"liveness_probes": [{
"period_seconds": 5,
"initial_delay_seconds": 5,
"success_threshold": 1,
"failure_threshold": 3,
"timeout_seconds": 1,
"execs": [{
"commands": ["cat /tmp/healthy"],
}],
}],
"readiness_probes": [{
"period_seconds": 5,
"initial_delay_seconds": 5,
"success_threshold": 1,
"failure_threshold": 3,
"timeout_seconds": 1,
"execs": [{
"commands": ["cat /tmp/healthy"],
}],
}],
}],
init_containers=[{
"name": "init-busybox",
"image": "registry.cn-beijing.aliyuncs.com/eci_open/busybox:1.30",
"image_pull_policy": "IfNotPresent",
"commands": ["echo"],
"args": ["hello initcontainer"],
}],
volumes=[
{
"name": "empty1",
"type": "EmptyDirVolume",
},
{
"name": "empty2",
"type": "EmptyDirVolume",
},
])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eci"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := eci.GetZones(ctx, nil, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.0.0.0/8"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.1.0.0/16"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(_default.Zones[0].ZoneIds[0]),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String(name),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
_, err = eci.NewContainerGroup(ctx, "default", &eci.ContainerGroupArgs{
ContainerGroupName: pulumi.String(name),
Cpu: pulumi.Float64(8),
Memory: pulumi.Float64(16),
RestartPolicy: pulumi.String("OnFailure"),
SecurityGroupId: defaultSecurityGroup.ID(),
VswitchId: defaultSwitch.ID(),
AutoCreateEip: pulumi.Bool(true),
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
"For": pulumi.String("example"),
},
Containers: eci.ContainerGroupContainerArray{
&eci.ContainerGroupContainerArgs{
Image: pulumi.String("registry.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/example"),
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("name"),
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"),
},
},
},
},
},
},
},
InitContainers: eci.ContainerGroupInitContainerArray{
&eci.ContainerGroupInitContainerArgs{
Name: pulumi.String("init-busybox"),
Image: pulumi.String("registry.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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.Eci.GetZones.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.0.0.0/8",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
CidrBlock = "10.1.0.0/16",
VpcId = defaultNetwork.Id,
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneIds[0])),
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = name,
VpcId = defaultNetwork.Id,
});
var defaultContainerGroup = new AliCloud.Eci.ContainerGroup("default", new()
{
ContainerGroupName = name,
Cpu = 8,
Memory = 16,
RestartPolicy = "OnFailure",
SecurityGroupId = defaultSecurityGroup.Id,
VswitchId = defaultSwitch.Id,
AutoCreateEip = true,
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
Containers = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerArgs
{
Image = "registry.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/example",
ReadOnly = false,
Name = "empty1",
},
},
Ports = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerPortArgs
{
Port = 80,
Protocol = "TCP",
},
},
EnvironmentVars = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerEnvironmentVarArgs
{
Key = "name",
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",
},
},
},
},
},
},
},
InitContainers = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerArgs
{
Name = "init-busybox",
Image = "registry.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 generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eci.EciFunctions;
import com.pulumi.alicloud.eci.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var default = EciFunctions.getZones();
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.0.0.0/8")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.1.0.0/16")
.vpcId(defaultNetwork.id())
.zoneId(default_.zones()[0].zoneIds()[0])
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultNetwork.id())
.build());
var defaultContainerGroup = new ContainerGroup("defaultContainerGroup", ContainerGroupArgs.builder()
.containerGroupName(name)
.cpu(8)
.memory(16)
.restartPolicy("OnFailure")
.securityGroupId(defaultSecurityGroup.id())
.vswitchId(defaultSwitch.id())
.autoCreateEip(true)
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.containers(ContainerGroupContainerArgs.builder()
.image("registry.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/example")
.readOnly(false)
.name("empty1")
.build())
.ports(ContainerGroupContainerPortArgs.builder()
.port(80)
.protocol("TCP")
.build())
.environmentVars(ContainerGroupContainerEnvironmentVarArgs.builder()
.key("name")
.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())
.initContainers(ContainerGroupInitContainerArgs.builder()
.name("init-busybox")
.image("registry.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());
}
}
configuration:
name:
type: string
default: tf-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 10.0.0.0/8
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vswitchName: ${name}
cidrBlock: 10.1.0.0/16
vpcId: ${defaultNetwork.id}
zoneId: ${default.zones[0].zoneIds[0]}
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
name: ${name}
vpcId: ${defaultNetwork.id}
defaultContainerGroup:
type: alicloud:eci:ContainerGroup
name: default
properties:
containerGroupName: ${name}
cpu: 8
memory: 16
restartPolicy: OnFailure
securityGroupId: ${defaultSecurityGroup.id}
vswitchId: ${defaultSwitch.id}
autoCreateEip: true
tags:
Created: TF
For: example
containers:
- image: registry.cn-beijing.aliyuncs.com/eci_open/nginx:alpine
name: nginx
workingDir: /tmp/nginx
imagePullPolicy: IfNotPresent
commands:
- /bin/sh
- -c
- sleep 9999
volumeMounts:
- mountPath: /tmp/example
readOnly: false
name: empty1
ports:
- port: 80
protocol: TCP
environmentVars:
- key: name
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
initContainers:
- name: init-busybox
image: registry.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
variables:
default:
fn::invoke:
Function: alicloud:eci:getZones
Arguments: {}
Create ContainerGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerGroup(name: string, args: ContainerGroupArgs, opts?: CustomResourceOptions);
@overload
def ContainerGroup(resource_name: str,
args: ContainerGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
containers: Optional[Sequence[ContainerGroupContainerArgs]] = None,
vswitch_id: Optional[str] = None,
security_group_id: Optional[str] = None,
container_group_name: Optional[str] = None,
memory: Optional[float] = None,
plain_http_registry: Optional[str] = None,
dns_config: Optional[ContainerGroupDnsConfigArgs] = 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,
acr_registry_infos: Optional[Sequence[ContainerGroupAcrRegistryInfoArgs]] = None,
cpu: Optional[float] = None,
ram_role_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
restart_policy: Optional[str] = None,
security_context: Optional[ContainerGroupSecurityContextArgs] = None,
auto_match_image_cache: Optional[bool] = None,
spot_price_limit: Optional[float] = None,
spot_strategy: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
termination_grace_period_seconds: Optional[int] = None,
volumes: Optional[Sequence[ContainerGroupVolumeArgs]] = None,
auto_create_eip: Optional[bool] = None,
zone_id: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var containerGroupResource = new AliCloud.Eci.ContainerGroup("containerGroupResource", new()
{
Containers = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerArgs
{
Image = "string",
Name = "string",
LivenessProbes = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeArgs
{
Execs = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeExecArgs
{
Commands = new[]
{
"string",
},
},
},
FailureThreshold = 0,
HttpGets = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeHttpGetArgs
{
Path = "string",
Port = 0,
Scheme = "string",
},
},
InitialDelaySeconds = 0,
PeriodSeconds = 0,
SuccessThreshold = 0,
TcpSockets = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerLivenessProbeTcpSocketArgs
{
Port = 0,
},
},
TimeoutSeconds = 0,
},
},
Memory = 0,
Gpu = 0,
Cpu = 0,
ImagePullPolicy = "string",
LifecyclePreStopHandlerExecs = new[]
{
"string",
},
Args = new[]
{
"string",
},
EnvironmentVars = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerEnvironmentVarArgs
{
FieldReves = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerEnvironmentVarFieldRefArgs
{
FieldPath = "string",
},
},
Key = "string",
Value = "string",
},
},
Commands = new[]
{
"string",
},
Ports = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerPortArgs
{
Port = 0,
Protocol = "string",
},
},
ReadinessProbes = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeArgs
{
Execs = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeExecArgs
{
Commands = new[]
{
"string",
},
},
},
FailureThreshold = 0,
HttpGets = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeHttpGetArgs
{
Path = "string",
Port = 0,
Scheme = "string",
},
},
InitialDelaySeconds = 0,
PeriodSeconds = 0,
SuccessThreshold = 0,
TcpSockets = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerReadinessProbeTcpSocketArgs
{
Port = 0,
},
},
TimeoutSeconds = 0,
},
},
Ready = false,
RestartCount = 0,
SecurityContexts = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerSecurityContextArgs
{
Capabilities = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerSecurityContextCapabilityArgs
{
Adds = new[]
{
"string",
},
},
},
Privileged = false,
RunAsUser = 0,
},
},
VolumeMounts = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupContainerVolumeMountArgs
{
MountPath = "string",
Name = "string",
ReadOnly = false,
},
},
WorkingDir = "string",
},
},
VswitchId = "string",
SecurityGroupId = "string",
ContainerGroupName = "string",
Memory = 0,
PlainHttpRegistry = "string",
DnsConfig = new AliCloud.Eci.Inputs.ContainerGroupDnsConfigArgs
{
NameServers = new[]
{
"string",
},
Options = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupDnsConfigOptionArgs
{
Name = "string",
Value = "string",
},
},
Searches = new[]
{
"string",
},
},
EipBandwidth = 0,
EipInstanceId = "string",
HostAliases = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupHostAliasArgs
{
Hostnames = new[]
{
"string",
},
Ip = "string",
},
},
ImageRegistryCredentials = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupImageRegistryCredentialArgs
{
Password = "string",
Server = "string",
UserName = "string",
},
},
InitContainers = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerArgs
{
Args = new[]
{
"string",
},
Commands = new[]
{
"string",
},
Cpu = 0,
EnvironmentVars = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerEnvironmentVarArgs
{
FieldReves = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerEnvironmentVarFieldRefArgs
{
FieldPath = "string",
},
},
Key = "string",
Value = "string",
},
},
Gpu = 0,
Image = "string",
ImagePullPolicy = "string",
Memory = 0,
Name = "string",
Ports = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerPortArgs
{
Port = 0,
Protocol = "string",
},
},
Ready = false,
RestartCount = 0,
SecurityContexts = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerSecurityContextArgs
{
Capabilities = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerSecurityContextCapabilityArgs
{
Adds = new[]
{
"string",
},
},
},
RunAsUser = 0,
},
},
VolumeMounts = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupInitContainerVolumeMountArgs
{
MountPath = "string",
Name = "string",
ReadOnly = false,
},
},
WorkingDir = "string",
},
},
InsecureRegistry = "string",
InstanceType = "string",
AcrRegistryInfos = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupAcrRegistryInfoArgs
{
Domains = new[]
{
"string",
},
InstanceId = "string",
InstanceName = "string",
RegionId = "string",
},
},
Cpu = 0,
RamRoleName = "string",
ResourceGroupId = "string",
RestartPolicy = "string",
SecurityContext = new AliCloud.Eci.Inputs.ContainerGroupSecurityContextArgs
{
Sysctls = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupSecurityContextSysctlArgs
{
Name = "string",
Value = "string",
},
},
},
AutoMatchImageCache = false,
SpotPriceLimit = 0,
SpotStrategy = "string",
Tags =
{
{ "string", "string" },
},
TerminationGracePeriodSeconds = 0,
Volumes = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupVolumeArgs
{
ConfigFileVolumeConfigFileToPaths = new[]
{
new AliCloud.Eci.Inputs.ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs
{
Content = "string",
Path = "string",
},
},
DiskVolumeDiskId = "string",
DiskVolumeFsType = "string",
FlexVolumeDriver = "string",
FlexVolumeFsType = "string",
FlexVolumeOptions = "string",
Name = "string",
NfsVolumePath = "string",
NfsVolumeReadOnly = false,
NfsVolumeServer = "string",
Type = "string",
},
},
AutoCreateEip = false,
ZoneId = "string",
});
example, err := eci.NewContainerGroup(ctx, "containerGroupResource", &eci.ContainerGroupArgs{
Containers: eci.ContainerGroupContainerArray{
&eci.ContainerGroupContainerArgs{
Image: pulumi.String("string"),
Name: pulumi.String("string"),
LivenessProbes: eci.ContainerGroupContainerLivenessProbeArray{
&eci.ContainerGroupContainerLivenessProbeArgs{
Execs: eci.ContainerGroupContainerLivenessProbeExecArray{
&eci.ContainerGroupContainerLivenessProbeExecArgs{
Commands: pulumi.StringArray{
pulumi.String("string"),
},
},
},
FailureThreshold: pulumi.Int(0),
HttpGets: eci.ContainerGroupContainerLivenessProbeHttpGetArray{
&eci.ContainerGroupContainerLivenessProbeHttpGetArgs{
Path: pulumi.String("string"),
Port: pulumi.Int(0),
Scheme: pulumi.String("string"),
},
},
InitialDelaySeconds: pulumi.Int(0),
PeriodSeconds: pulumi.Int(0),
SuccessThreshold: pulumi.Int(0),
TcpSockets: eci.ContainerGroupContainerLivenessProbeTcpSocketArray{
&eci.ContainerGroupContainerLivenessProbeTcpSocketArgs{
Port: pulumi.Int(0),
},
},
TimeoutSeconds: pulumi.Int(0),
},
},
Memory: pulumi.Float64(0),
Gpu: pulumi.Int(0),
Cpu: pulumi.Float64(0),
ImagePullPolicy: pulumi.String("string"),
LifecyclePreStopHandlerExecs: pulumi.StringArray{
pulumi.String("string"),
},
Args: pulumi.StringArray{
pulumi.String("string"),
},
EnvironmentVars: eci.ContainerGroupContainerEnvironmentVarArray{
&eci.ContainerGroupContainerEnvironmentVarArgs{
FieldReves: eci.ContainerGroupContainerEnvironmentVarFieldRefArray{
&eci.ContainerGroupContainerEnvironmentVarFieldRefArgs{
FieldPath: pulumi.String("string"),
},
},
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Commands: pulumi.StringArray{
pulumi.String("string"),
},
Ports: eci.ContainerGroupContainerPortArray{
&eci.ContainerGroupContainerPortArgs{
Port: pulumi.Int(0),
Protocol: pulumi.String("string"),
},
},
ReadinessProbes: eci.ContainerGroupContainerReadinessProbeArray{
&eci.ContainerGroupContainerReadinessProbeArgs{
Execs: eci.ContainerGroupContainerReadinessProbeExecArray{
&eci.ContainerGroupContainerReadinessProbeExecArgs{
Commands: pulumi.StringArray{
pulumi.String("string"),
},
},
},
FailureThreshold: pulumi.Int(0),
HttpGets: eci.ContainerGroupContainerReadinessProbeHttpGetArray{
&eci.ContainerGroupContainerReadinessProbeHttpGetArgs{
Path: pulumi.String("string"),
Port: pulumi.Int(0),
Scheme: pulumi.String("string"),
},
},
InitialDelaySeconds: pulumi.Int(0),
PeriodSeconds: pulumi.Int(0),
SuccessThreshold: pulumi.Int(0),
TcpSockets: eci.ContainerGroupContainerReadinessProbeTcpSocketArray{
&eci.ContainerGroupContainerReadinessProbeTcpSocketArgs{
Port: pulumi.Int(0),
},
},
TimeoutSeconds: pulumi.Int(0),
},
},
Ready: pulumi.Bool(false),
RestartCount: pulumi.Int(0),
SecurityContexts: eci.ContainerGroupContainerSecurityContextArray{
&eci.ContainerGroupContainerSecurityContextArgs{
Capabilities: eci.ContainerGroupContainerSecurityContextCapabilityArray{
&eci.ContainerGroupContainerSecurityContextCapabilityArgs{
Adds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Privileged: pulumi.Bool(false),
RunAsUser: pulumi.Int(0),
},
},
VolumeMounts: eci.ContainerGroupContainerVolumeMountArray{
&eci.ContainerGroupContainerVolumeMountArgs{
MountPath: pulumi.String("string"),
Name: pulumi.String("string"),
ReadOnly: pulumi.Bool(false),
},
},
WorkingDir: pulumi.String("string"),
},
},
VswitchId: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
ContainerGroupName: pulumi.String("string"),
Memory: pulumi.Float64(0),
PlainHttpRegistry: pulumi.String("string"),
DnsConfig: &eci.ContainerGroupDnsConfigArgs{
NameServers: pulumi.StringArray{
pulumi.String("string"),
},
Options: eci.ContainerGroupDnsConfigOptionArray{
&eci.ContainerGroupDnsConfigOptionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Searches: pulumi.StringArray{
pulumi.String("string"),
},
},
EipBandwidth: pulumi.Int(0),
EipInstanceId: pulumi.String("string"),
HostAliases: eci.ContainerGroupHostAliasArray{
&eci.ContainerGroupHostAliasArgs{
Hostnames: pulumi.StringArray{
pulumi.String("string"),
},
Ip: pulumi.String("string"),
},
},
ImageRegistryCredentials: eci.ContainerGroupImageRegistryCredentialArray{
&eci.ContainerGroupImageRegistryCredentialArgs{
Password: pulumi.String("string"),
Server: pulumi.String("string"),
UserName: pulumi.String("string"),
},
},
InitContainers: eci.ContainerGroupInitContainerArray{
&eci.ContainerGroupInitContainerArgs{
Args: pulumi.StringArray{
pulumi.String("string"),
},
Commands: pulumi.StringArray{
pulumi.String("string"),
},
Cpu: pulumi.Float64(0),
EnvironmentVars: eci.ContainerGroupInitContainerEnvironmentVarArray{
&eci.ContainerGroupInitContainerEnvironmentVarArgs{
FieldReves: eci.ContainerGroupInitContainerEnvironmentVarFieldRefArray{
&eci.ContainerGroupInitContainerEnvironmentVarFieldRefArgs{
FieldPath: pulumi.String("string"),
},
},
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Gpu: pulumi.Int(0),
Image: pulumi.String("string"),
ImagePullPolicy: pulumi.String("string"),
Memory: pulumi.Float64(0),
Name: pulumi.String("string"),
Ports: eci.ContainerGroupInitContainerPortArray{
&eci.ContainerGroupInitContainerPortArgs{
Port: pulumi.Int(0),
Protocol: pulumi.String("string"),
},
},
Ready: pulumi.Bool(false),
RestartCount: pulumi.Int(0),
SecurityContexts: eci.ContainerGroupInitContainerSecurityContextArray{
&eci.ContainerGroupInitContainerSecurityContextArgs{
Capabilities: eci.ContainerGroupInitContainerSecurityContextCapabilityArray{
&eci.ContainerGroupInitContainerSecurityContextCapabilityArgs{
Adds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
RunAsUser: pulumi.Int(0),
},
},
VolumeMounts: eci.ContainerGroupInitContainerVolumeMountArray{
&eci.ContainerGroupInitContainerVolumeMountArgs{
MountPath: pulumi.String("string"),
Name: pulumi.String("string"),
ReadOnly: pulumi.Bool(false),
},
},
WorkingDir: pulumi.String("string"),
},
},
InsecureRegistry: pulumi.String("string"),
InstanceType: pulumi.String("string"),
AcrRegistryInfos: eci.ContainerGroupAcrRegistryInfoArray{
&eci.ContainerGroupAcrRegistryInfoArgs{
Domains: pulumi.StringArray{
pulumi.String("string"),
},
InstanceId: pulumi.String("string"),
InstanceName: pulumi.String("string"),
RegionId: pulumi.String("string"),
},
},
Cpu: pulumi.Float64(0),
RamRoleName: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
RestartPolicy: pulumi.String("string"),
SecurityContext: &eci.ContainerGroupSecurityContextArgs{
Sysctls: eci.ContainerGroupSecurityContextSysctlArray{
&eci.ContainerGroupSecurityContextSysctlArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
AutoMatchImageCache: pulumi.Bool(false),
SpotPriceLimit: pulumi.Float64(0),
SpotStrategy: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TerminationGracePeriodSeconds: pulumi.Int(0),
Volumes: eci.ContainerGroupVolumeArray{
&eci.ContainerGroupVolumeArgs{
ConfigFileVolumeConfigFileToPaths: eci.ContainerGroupVolumeConfigFileVolumeConfigFileToPathArray{
&eci.ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs{
Content: pulumi.String("string"),
Path: pulumi.String("string"),
},
},
DiskVolumeDiskId: pulumi.String("string"),
DiskVolumeFsType: pulumi.String("string"),
FlexVolumeDriver: pulumi.String("string"),
FlexVolumeFsType: pulumi.String("string"),
FlexVolumeOptions: pulumi.String("string"),
Name: pulumi.String("string"),
NfsVolumePath: pulumi.String("string"),
NfsVolumeReadOnly: pulumi.Bool(false),
NfsVolumeServer: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
AutoCreateEip: pulumi.Bool(false),
ZoneId: pulumi.String("string"),
})
var containerGroupResource = new ContainerGroup("containerGroupResource", ContainerGroupArgs.builder()
.containers(ContainerGroupContainerArgs.builder()
.image("string")
.name("string")
.livenessProbes(ContainerGroupContainerLivenessProbeArgs.builder()
.execs(ContainerGroupContainerLivenessProbeExecArgs.builder()
.commands("string")
.build())
.failureThreshold(0)
.httpGets(ContainerGroupContainerLivenessProbeHttpGetArgs.builder()
.path("string")
.port(0)
.scheme("string")
.build())
.initialDelaySeconds(0)
.periodSeconds(0)
.successThreshold(0)
.tcpSockets(ContainerGroupContainerLivenessProbeTcpSocketArgs.builder()
.port(0)
.build())
.timeoutSeconds(0)
.build())
.memory(0)
.gpu(0)
.cpu(0)
.imagePullPolicy("string")
.lifecyclePreStopHandlerExecs("string")
.args("string")
.environmentVars(ContainerGroupContainerEnvironmentVarArgs.builder()
.fieldReves(ContainerGroupContainerEnvironmentVarFieldRefArgs.builder()
.fieldPath("string")
.build())
.key("string")
.value("string")
.build())
.commands("string")
.ports(ContainerGroupContainerPortArgs.builder()
.port(0)
.protocol("string")
.build())
.readinessProbes(ContainerGroupContainerReadinessProbeArgs.builder()
.execs(ContainerGroupContainerReadinessProbeExecArgs.builder()
.commands("string")
.build())
.failureThreshold(0)
.httpGets(ContainerGroupContainerReadinessProbeHttpGetArgs.builder()
.path("string")
.port(0)
.scheme("string")
.build())
.initialDelaySeconds(0)
.periodSeconds(0)
.successThreshold(0)
.tcpSockets(ContainerGroupContainerReadinessProbeTcpSocketArgs.builder()
.port(0)
.build())
.timeoutSeconds(0)
.build())
.ready(false)
.restartCount(0)
.securityContexts(ContainerGroupContainerSecurityContextArgs.builder()
.capabilities(ContainerGroupContainerSecurityContextCapabilityArgs.builder()
.adds("string")
.build())
.privileged(false)
.runAsUser(0)
.build())
.volumeMounts(ContainerGroupContainerVolumeMountArgs.builder()
.mountPath("string")
.name("string")
.readOnly(false)
.build())
.workingDir("string")
.build())
.vswitchId("string")
.securityGroupId("string")
.containerGroupName("string")
.memory(0)
.plainHttpRegistry("string")
.dnsConfig(ContainerGroupDnsConfigArgs.builder()
.nameServers("string")
.options(ContainerGroupDnsConfigOptionArgs.builder()
.name("string")
.value("string")
.build())
.searches("string")
.build())
.eipBandwidth(0)
.eipInstanceId("string")
.hostAliases(ContainerGroupHostAliasArgs.builder()
.hostnames("string")
.ip("string")
.build())
.imageRegistryCredentials(ContainerGroupImageRegistryCredentialArgs.builder()
.password("string")
.server("string")
.userName("string")
.build())
.initContainers(ContainerGroupInitContainerArgs.builder()
.args("string")
.commands("string")
.cpu(0)
.environmentVars(ContainerGroupInitContainerEnvironmentVarArgs.builder()
.fieldReves(ContainerGroupInitContainerEnvironmentVarFieldRefArgs.builder()
.fieldPath("string")
.build())
.key("string")
.value("string")
.build())
.gpu(0)
.image("string")
.imagePullPolicy("string")
.memory(0)
.name("string")
.ports(ContainerGroupInitContainerPortArgs.builder()
.port(0)
.protocol("string")
.build())
.ready(false)
.restartCount(0)
.securityContexts(ContainerGroupInitContainerSecurityContextArgs.builder()
.capabilities(ContainerGroupInitContainerSecurityContextCapabilityArgs.builder()
.adds("string")
.build())
.runAsUser(0)
.build())
.volumeMounts(ContainerGroupInitContainerVolumeMountArgs.builder()
.mountPath("string")
.name("string")
.readOnly(false)
.build())
.workingDir("string")
.build())
.insecureRegistry("string")
.instanceType("string")
.acrRegistryInfos(ContainerGroupAcrRegistryInfoArgs.builder()
.domains("string")
.instanceId("string")
.instanceName("string")
.regionId("string")
.build())
.cpu(0)
.ramRoleName("string")
.resourceGroupId("string")
.restartPolicy("string")
.securityContext(ContainerGroupSecurityContextArgs.builder()
.sysctls(ContainerGroupSecurityContextSysctlArgs.builder()
.name("string")
.value("string")
.build())
.build())
.autoMatchImageCache(false)
.spotPriceLimit(0)
.spotStrategy("string")
.tags(Map.of("string", "string"))
.terminationGracePeriodSeconds(0)
.volumes(ContainerGroupVolumeArgs.builder()
.configFileVolumeConfigFileToPaths(ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs.builder()
.content("string")
.path("string")
.build())
.diskVolumeDiskId("string")
.diskVolumeFsType("string")
.flexVolumeDriver("string")
.flexVolumeFsType("string")
.flexVolumeOptions("string")
.name("string")
.nfsVolumePath("string")
.nfsVolumeReadOnly(false)
.nfsVolumeServer("string")
.type("string")
.build())
.autoCreateEip(false)
.zoneId("string")
.build());
container_group_resource = alicloud.eci.ContainerGroup("containerGroupResource",
containers=[alicloud.eci.ContainerGroupContainerArgs(
image="string",
name="string",
liveness_probes=[alicloud.eci.ContainerGroupContainerLivenessProbeArgs(
execs=[alicloud.eci.ContainerGroupContainerLivenessProbeExecArgs(
commands=["string"],
)],
failure_threshold=0,
http_gets=[alicloud.eci.ContainerGroupContainerLivenessProbeHttpGetArgs(
path="string",
port=0,
scheme="string",
)],
initial_delay_seconds=0,
period_seconds=0,
success_threshold=0,
tcp_sockets=[alicloud.eci.ContainerGroupContainerLivenessProbeTcpSocketArgs(
port=0,
)],
timeout_seconds=0,
)],
memory=0,
gpu=0,
cpu=0,
image_pull_policy="string",
lifecycle_pre_stop_handler_execs=["string"],
args=["string"],
environment_vars=[alicloud.eci.ContainerGroupContainerEnvironmentVarArgs(
field_reves=[alicloud.eci.ContainerGroupContainerEnvironmentVarFieldRefArgs(
field_path="string",
)],
key="string",
value="string",
)],
commands=["string"],
ports=[alicloud.eci.ContainerGroupContainerPortArgs(
port=0,
protocol="string",
)],
readiness_probes=[alicloud.eci.ContainerGroupContainerReadinessProbeArgs(
execs=[alicloud.eci.ContainerGroupContainerReadinessProbeExecArgs(
commands=["string"],
)],
failure_threshold=0,
http_gets=[alicloud.eci.ContainerGroupContainerReadinessProbeHttpGetArgs(
path="string",
port=0,
scheme="string",
)],
initial_delay_seconds=0,
period_seconds=0,
success_threshold=0,
tcp_sockets=[alicloud.eci.ContainerGroupContainerReadinessProbeTcpSocketArgs(
port=0,
)],
timeout_seconds=0,
)],
ready=False,
restart_count=0,
security_contexts=[alicloud.eci.ContainerGroupContainerSecurityContextArgs(
capabilities=[alicloud.eci.ContainerGroupContainerSecurityContextCapabilityArgs(
adds=["string"],
)],
privileged=False,
run_as_user=0,
)],
volume_mounts=[alicloud.eci.ContainerGroupContainerVolumeMountArgs(
mount_path="string",
name="string",
read_only=False,
)],
working_dir="string",
)],
vswitch_id="string",
security_group_id="string",
container_group_name="string",
memory=0,
plain_http_registry="string",
dns_config=alicloud.eci.ContainerGroupDnsConfigArgs(
name_servers=["string"],
options=[alicloud.eci.ContainerGroupDnsConfigOptionArgs(
name="string",
value="string",
)],
searches=["string"],
),
eip_bandwidth=0,
eip_instance_id="string",
host_aliases=[alicloud.eci.ContainerGroupHostAliasArgs(
hostnames=["string"],
ip="string",
)],
image_registry_credentials=[alicloud.eci.ContainerGroupImageRegistryCredentialArgs(
password="string",
server="string",
user_name="string",
)],
init_containers=[alicloud.eci.ContainerGroupInitContainerArgs(
args=["string"],
commands=["string"],
cpu=0,
environment_vars=[alicloud.eci.ContainerGroupInitContainerEnvironmentVarArgs(
field_reves=[alicloud.eci.ContainerGroupInitContainerEnvironmentVarFieldRefArgs(
field_path="string",
)],
key="string",
value="string",
)],
gpu=0,
image="string",
image_pull_policy="string",
memory=0,
name="string",
ports=[alicloud.eci.ContainerGroupInitContainerPortArgs(
port=0,
protocol="string",
)],
ready=False,
restart_count=0,
security_contexts=[alicloud.eci.ContainerGroupInitContainerSecurityContextArgs(
capabilities=[alicloud.eci.ContainerGroupInitContainerSecurityContextCapabilityArgs(
adds=["string"],
)],
run_as_user=0,
)],
volume_mounts=[alicloud.eci.ContainerGroupInitContainerVolumeMountArgs(
mount_path="string",
name="string",
read_only=False,
)],
working_dir="string",
)],
insecure_registry="string",
instance_type="string",
acr_registry_infos=[alicloud.eci.ContainerGroupAcrRegistryInfoArgs(
domains=["string"],
instance_id="string",
instance_name="string",
region_id="string",
)],
cpu=0,
ram_role_name="string",
resource_group_id="string",
restart_policy="string",
security_context=alicloud.eci.ContainerGroupSecurityContextArgs(
sysctls=[alicloud.eci.ContainerGroupSecurityContextSysctlArgs(
name="string",
value="string",
)],
),
auto_match_image_cache=False,
spot_price_limit=0,
spot_strategy="string",
tags={
"string": "string",
},
termination_grace_period_seconds=0,
volumes=[alicloud.eci.ContainerGroupVolumeArgs(
config_file_volume_config_file_to_paths=[alicloud.eci.ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs(
content="string",
path="string",
)],
disk_volume_disk_id="string",
disk_volume_fs_type="string",
flex_volume_driver="string",
flex_volume_fs_type="string",
flex_volume_options="string",
name="string",
nfs_volume_path="string",
nfs_volume_read_only=False,
nfs_volume_server="string",
type="string",
)],
auto_create_eip=False,
zone_id="string")
const containerGroupResource = new alicloud.eci.ContainerGroup("containerGroupResource", {
containers: [{
image: "string",
name: "string",
livenessProbes: [{
execs: [{
commands: ["string"],
}],
failureThreshold: 0,
httpGets: [{
path: "string",
port: 0,
scheme: "string",
}],
initialDelaySeconds: 0,
periodSeconds: 0,
successThreshold: 0,
tcpSockets: [{
port: 0,
}],
timeoutSeconds: 0,
}],
memory: 0,
gpu: 0,
cpu: 0,
imagePullPolicy: "string",
lifecyclePreStopHandlerExecs: ["string"],
args: ["string"],
environmentVars: [{
fieldReves: [{
fieldPath: "string",
}],
key: "string",
value: "string",
}],
commands: ["string"],
ports: [{
port: 0,
protocol: "string",
}],
readinessProbes: [{
execs: [{
commands: ["string"],
}],
failureThreshold: 0,
httpGets: [{
path: "string",
port: 0,
scheme: "string",
}],
initialDelaySeconds: 0,
periodSeconds: 0,
successThreshold: 0,
tcpSockets: [{
port: 0,
}],
timeoutSeconds: 0,
}],
ready: false,
restartCount: 0,
securityContexts: [{
capabilities: [{
adds: ["string"],
}],
privileged: false,
runAsUser: 0,
}],
volumeMounts: [{
mountPath: "string",
name: "string",
readOnly: false,
}],
workingDir: "string",
}],
vswitchId: "string",
securityGroupId: "string",
containerGroupName: "string",
memory: 0,
plainHttpRegistry: "string",
dnsConfig: {
nameServers: ["string"],
options: [{
name: "string",
value: "string",
}],
searches: ["string"],
},
eipBandwidth: 0,
eipInstanceId: "string",
hostAliases: [{
hostnames: ["string"],
ip: "string",
}],
imageRegistryCredentials: [{
password: "string",
server: "string",
userName: "string",
}],
initContainers: [{
args: ["string"],
commands: ["string"],
cpu: 0,
environmentVars: [{
fieldReves: [{
fieldPath: "string",
}],
key: "string",
value: "string",
}],
gpu: 0,
image: "string",
imagePullPolicy: "string",
memory: 0,
name: "string",
ports: [{
port: 0,
protocol: "string",
}],
ready: false,
restartCount: 0,
securityContexts: [{
capabilities: [{
adds: ["string"],
}],
runAsUser: 0,
}],
volumeMounts: [{
mountPath: "string",
name: "string",
readOnly: false,
}],
workingDir: "string",
}],
insecureRegistry: "string",
instanceType: "string",
acrRegistryInfos: [{
domains: ["string"],
instanceId: "string",
instanceName: "string",
regionId: "string",
}],
cpu: 0,
ramRoleName: "string",
resourceGroupId: "string",
restartPolicy: "string",
securityContext: {
sysctls: [{
name: "string",
value: "string",
}],
},
autoMatchImageCache: false,
spotPriceLimit: 0,
spotStrategy: "string",
tags: {
string: "string",
},
terminationGracePeriodSeconds: 0,
volumes: [{
configFileVolumeConfigFileToPaths: [{
content: "string",
path: "string",
}],
diskVolumeDiskId: "string",
diskVolumeFsType: "string",
flexVolumeDriver: "string",
flexVolumeFsType: "string",
flexVolumeOptions: "string",
name: "string",
nfsVolumePath: "string",
nfsVolumeReadOnly: false,
nfsVolumeServer: "string",
type: "string",
}],
autoCreateEip: false,
zoneId: "string",
});
type: alicloud:eci:ContainerGroup
properties:
acrRegistryInfos:
- domains:
- string
instanceId: string
instanceName: string
regionId: string
autoCreateEip: false
autoMatchImageCache: false
containerGroupName: string
containers:
- args:
- string
commands:
- string
cpu: 0
environmentVars:
- fieldReves:
- fieldPath: string
key: string
value: string
gpu: 0
image: string
imagePullPolicy: string
lifecyclePreStopHandlerExecs:
- string
livenessProbes:
- execs:
- commands:
- string
failureThreshold: 0
httpGets:
- path: string
port: 0
scheme: string
initialDelaySeconds: 0
periodSeconds: 0
successThreshold: 0
tcpSockets:
- port: 0
timeoutSeconds: 0
memory: 0
name: string
ports:
- port: 0
protocol: string
readinessProbes:
- execs:
- commands:
- string
failureThreshold: 0
httpGets:
- path: string
port: 0
scheme: string
initialDelaySeconds: 0
periodSeconds: 0
successThreshold: 0
tcpSockets:
- port: 0
timeoutSeconds: 0
ready: false
restartCount: 0
securityContexts:
- capabilities:
- adds:
- string
privileged: false
runAsUser: 0
volumeMounts:
- mountPath: string
name: string
readOnly: false
workingDir: string
cpu: 0
dnsConfig:
nameServers:
- string
options:
- name: string
value: string
searches:
- string
eipBandwidth: 0
eipInstanceId: string
hostAliases:
- hostnames:
- string
ip: string
imageRegistryCredentials:
- password: string
server: string
userName: string
initContainers:
- args:
- string
commands:
- string
cpu: 0
environmentVars:
- fieldReves:
- fieldPath: string
key: string
value: string
gpu: 0
image: string
imagePullPolicy: string
memory: 0
name: string
ports:
- port: 0
protocol: string
ready: false
restartCount: 0
securityContexts:
- capabilities:
- adds:
- string
runAsUser: 0
volumeMounts:
- mountPath: string
name: string
readOnly: false
workingDir: string
insecureRegistry: string
instanceType: string
memory: 0
plainHttpRegistry: string
ramRoleName: string
resourceGroupId: string
restartPolicy: string
securityContext:
sysctls:
- name: string
value: string
securityGroupId: string
spotPriceLimit: 0
spotStrategy: string
tags:
string: string
terminationGracePeriodSeconds: 0
volumes:
- configFileVolumeConfigFileToPaths:
- content: string
path: string
diskVolumeDiskId: string
diskVolumeFsType: string
flexVolumeDriver: string
flexVolumeFsType: string
flexVolumeOptions: string
name: string
nfsVolumePath: string
nfsVolumeReadOnly: false
nfsVolumeServer: string
type: string
vswitchId: string
zoneId: string
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> - The list of containers. See
containers
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - Acr
Registry List<Pulumi.Infos Ali Cloud. Eci. Inputs. Container Group Acr Registry Info> - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - Cpu double
- The amount of CPU resources allocated to the container group.
- Dns
Config Pulumi.Ali Cloud. Eci. Inputs. Container Group Dns Config - The structure of dnsConfig. See
dns_config
below. - Eip
Bandwidth int - The bandwidth of the EIP. Default value:
5
. - Eip
Instance stringId - The ID of the elastic IP address (EIP).
- Host
Aliases List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Host Alias> - HostAliases. See
host_aliases
below. - Image
Registry List<Pulumi.Credentials Ali Cloud. Eci. Inputs. Container Group Image Registry Credential> - The image registry credential. See
image_registry_credential
below. - Init
Containers List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container> - The list of initContainers. See
init_containers
below. - 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - Restart
Policy string - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - Security
Context Pulumi.Ali Cloud. Eci. Inputs. Container Group Security Context - The security context of the container group. See
security_context
below. - Spot
Price doubleLimit - The maximum hourly price of the ECI spot instance.
- Spot
Strategy string - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - Dictionary<string, string>
- 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.
- Termination
Grace intPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- Volumes
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Volume> - The list of volumes. See
volumes
below. - 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. See
containers
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - Acr
Registry []ContainerInfos Group Acr Registry Info Args - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - Cpu float64
- The amount of CPU resources allocated to the container group.
- Dns
Config ContainerGroup Dns Config Args - The structure of dnsConfig. See
dns_config
below. - Eip
Bandwidth int - The bandwidth of the EIP. Default value:
5
. - Eip
Instance stringId - The ID of the elastic IP address (EIP).
- Host
Aliases []ContainerGroup Host Alias Args - HostAliases. See
host_aliases
below. - Image
Registry []ContainerCredentials Group Image Registry Credential Args - The image registry credential. See
image_registry_credential
below. - Init
Containers []ContainerGroup Init Container Args - The list of initContainers. See
init_containers
below. - 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - Restart
Policy string - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - Security
Context ContainerGroup Security Context Args - The security context of the container group. See
security_context
below. - Spot
Price float64Limit - The maximum hourly price of the ECI spot instance.
- Spot
Strategy string - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - map[string]string
- 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.
- Termination
Grace intPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- Volumes
[]Container
Group Volume Args - The list of volumes. See
volumes
below. - 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> - The list of containers. See
containers
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - acr
Registry List<ContainerInfos Group Acr Registry Info> - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - cpu Double
- The amount of CPU resources allocated to the container group.
- dns
Config ContainerGroup Dns Config - The structure of dnsConfig. See
dns_config
below. - eip
Bandwidth Integer - The bandwidth of the EIP. Default value:
5
. - eip
Instance StringId - The ID of the elastic IP address (EIP).
- host
Aliases List<ContainerGroup Host Alias> - HostAliases. See
host_aliases
below. - image
Registry List<ContainerCredentials Group Image Registry Credential> - The image registry credential. See
image_registry_credential
below. - init
Containers List<ContainerGroup Init Container> - The list of initContainers. See
init_containers
below. - 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - restart
Policy String - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - security
Context ContainerGroup Security Context - The security context of the container group. See
security_context
below. - spot
Price DoubleLimit - The maximum hourly price of the ECI spot instance.
- spot
Strategy String - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - Map<String,String>
- 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.
- termination
Grace IntegerPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- volumes
List<Container
Group Volume> - The list of volumes. See
volumes
below. - 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[] - The list of containers. See
containers
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - acr
Registry ContainerInfos Group Acr Registry Info[] - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - cpu number
- The amount of CPU resources allocated to the container group.
- dns
Config ContainerGroup Dns Config - The structure of dnsConfig. See
dns_config
below. - eip
Bandwidth number - The bandwidth of the EIP. Default value:
5
. - eip
Instance stringId - The ID of the elastic IP address (EIP).
- host
Aliases ContainerGroup Host Alias[] - HostAliases. See
host_aliases
below. - image
Registry ContainerCredentials Group Image Registry Credential[] - The image registry credential. See
image_registry_credential
below. - init
Containers ContainerGroup Init Container[] - The list of initContainers. See
init_containers
below. - 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - restart
Policy string - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - security
Context ContainerGroup Security Context - The security context of the container group. See
security_context
below. - spot
Price numberLimit - The maximum hourly price of the ECI spot instance.
- spot
Strategy string - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - {[key: string]: string}
- 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.
- termination
Grace numberPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- volumes
Container
Group Volume[] - The list of volumes. See
volumes
below. - 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. See
containers
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - acr_
registry_ Sequence[Containerinfos Group Acr Registry Info Args] - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - cpu float
- The amount of CPU resources allocated to the container group.
- dns_
config ContainerGroup Dns Config Args - The structure of dnsConfig. See
dns_config
below. - eip_
bandwidth int - The bandwidth of the EIP. Default value:
5
. - eip_
instance_ strid - The ID of the elastic IP address (EIP).
- host_
aliases Sequence[ContainerGroup Host Alias Args] - HostAliases. See
host_aliases
below. - image_
registry_ Sequence[Containercredentials Group Image Registry Credential Args] - The image registry credential. See
image_registry_credential
below. - init_
containers Sequence[ContainerGroup Init Container Args] - The list of initContainers. See
init_containers
below. - 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - restart_
policy str - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - security_
context ContainerGroup Security Context Args - The security context of the container group. See
security_context
below. - spot_
price_ floatlimit - The maximum hourly price of the ECI spot instance.
- spot_
strategy str - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - Mapping[str, str]
- 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.
- termination_
grace_ intperiod_ seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- volumes
Sequence[Container
Group Volume Args] - The list of volumes. See
volumes
below. - 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. See
containers
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - acr
Registry List<Property Map>Infos - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - cpu Number
- The amount of CPU resources allocated to the container group.
- dns
Config Property Map - The structure of dnsConfig. See
dns_config
below. - eip
Bandwidth Number - The bandwidth of the EIP. Default value:
5
. - eip
Instance StringId - The ID of the elastic IP address (EIP).
- host
Aliases List<Property Map> - HostAliases. See
host_aliases
below. - image
Registry List<Property Map>Credentials - The image registry credential. See
image_registry_credential
below. - init
Containers List<Property Map> - The list of initContainers. See
init_containers
below. - 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - restart
Policy String - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - security
Context Property Map - The security context of the container group. See
security_context
below. - spot
Price NumberLimit - The maximum hourly price of the ECI spot instance.
- spot
Strategy String - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - Map<String>
- 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.
- termination
Grace NumberPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- volumes List<Property Map>
- The list of volumes. See
volumes
below. - 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 since v1.170.0) The Public IP of the container group.
- Intranet
Ip string - (Available since 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 since v1.170.0) The Public IP of the container group.
- Intranet
Ip string - (Available since 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 since v1.170.0) The Public IP of the container group.
- intranet
Ip String - (Available since 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 since v1.170.0) The Public IP of the container group.
- intranet
Ip string - (Available since 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 since v1.170.0) The Public IP of the container group.
- intranet_
ip str - (Available since 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 since v1.170.0) The Public IP of the container group.
- intranet
Ip String - (Available since 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,
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_context: Optional[ContainerGroupSecurityContextArgs] = None,
security_group_id: Optional[str] = None,
spot_price_limit: Optional[float] = None,
spot_strategy: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
termination_grace_period_seconds: Optional[int] = 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> - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - Container
Group stringName - The name of the container group.
- Containers
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container> - The list of containers. See
containers
below. - Cpu double
- The amount of CPU resources allocated to the container group.
- Dns
Config Pulumi.Ali Cloud. Eci. Inputs. Container Group Dns Config - The structure of dnsConfig. See
dns_config
below. - Eip
Bandwidth int - The bandwidth of the EIP. Default value:
5
. - Eip
Instance stringId - The ID of the elastic IP address (EIP).
- Host
Aliases List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Host Alias> - HostAliases. See
host_aliases
below. - Image
Registry List<Pulumi.Credentials Ali Cloud. Eci. Inputs. Container Group Image Registry Credential> - The image registry credential. See
image_registry_credential
below. - Init
Containers List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container> - The list of initContainers. See
init_containers
below. - 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 since v1.170.0) The Public IP of the container group.
- Intranet
Ip string - (Available since 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - Restart
Policy string - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - Security
Context Pulumi.Ali Cloud. Eci. Inputs. Container Group Security Context - The security context of the container group. See
security_context
below. - 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.
- Spot
Price doubleLimit - The maximum hourly price of the ECI spot instance.
- Spot
Strategy string - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - Status string
- The status of container group.
- Dictionary<string, string>
- 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.
- Termination
Grace intPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- Volumes
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Volume> - The list of volumes. See
volumes
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - 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. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - Container
Group stringName - The name of the container group.
- Containers
[]Container
Group Container Args - The list of containers. See
containers
below. - Cpu float64
- The amount of CPU resources allocated to the container group.
- Dns
Config ContainerGroup Dns Config Args - The structure of dnsConfig. See
dns_config
below. - Eip
Bandwidth int - The bandwidth of the EIP. Default value:
5
. - Eip
Instance stringId - The ID of the elastic IP address (EIP).
- Host
Aliases []ContainerGroup Host Alias Args - HostAliases. See
host_aliases
below. - Image
Registry []ContainerCredentials Group Image Registry Credential Args - The image registry credential. See
image_registry_credential
below. - Init
Containers []ContainerGroup Init Container Args - The list of initContainers. See
init_containers
below. - 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 since v1.170.0) The Public IP of the container group.
- Intranet
Ip string - (Available since 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - Restart
Policy string - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - Security
Context ContainerGroup Security Context Args - The security context of the container group. See
security_context
below. - 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.
- Spot
Price float64Limit - The maximum hourly price of the ECI spot instance.
- Spot
Strategy string - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - Status string
- The status of container group.
- map[string]string
- 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.
- Termination
Grace intPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- Volumes
[]Container
Group Volume Args - The list of volumes. See
volumes
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - 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> - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - container
Group StringName - The name of the container group.
- containers
List<Container
Group Container> - The list of containers. See
containers
below. - cpu Double
- The amount of CPU resources allocated to the container group.
- dns
Config ContainerGroup Dns Config - The structure of dnsConfig. See
dns_config
below. - eip
Bandwidth Integer - The bandwidth of the EIP. Default value:
5
. - eip
Instance StringId - The ID of the elastic IP address (EIP).
- host
Aliases List<ContainerGroup Host Alias> - HostAliases. See
host_aliases
below. - image
Registry List<ContainerCredentials Group Image Registry Credential> - The image registry credential. See
image_registry_credential
below. - init
Containers List<ContainerGroup Init Container> - The list of initContainers. See
init_containers
below. - 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 since v1.170.0) The Public IP of the container group.
- intranet
Ip String - (Available since 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - restart
Policy String - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - security
Context ContainerGroup Security Context - The security context of the container group. See
security_context
below. - 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.
- spot
Price DoubleLimit - The maximum hourly price of the ECI spot instance.
- spot
Strategy String - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - status String
- The status of container group.
- Map<String,String>
- 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.
- termination
Grace IntegerPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- volumes
List<Container
Group Volume> - The list of volumes. See
volumes
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - 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[] - The ACR enterprise edition example properties. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - container
Group stringName - The name of the container group.
- containers
Container
Group Container[] - The list of containers. See
containers
below. - cpu number
- The amount of CPU resources allocated to the container group.
- dns
Config ContainerGroup Dns Config - The structure of dnsConfig. See
dns_config
below. - eip
Bandwidth number - The bandwidth of the EIP. Default value:
5
. - eip
Instance stringId - The ID of the elastic IP address (EIP).
- host
Aliases ContainerGroup Host Alias[] - HostAliases. See
host_aliases
below. - image
Registry ContainerCredentials Group Image Registry Credential[] - The image registry credential. See
image_registry_credential
below. - init
Containers ContainerGroup Init Container[] - The list of initContainers. See
init_containers
below. - 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 since v1.170.0) The Public IP of the container group.
- intranet
Ip string - (Available since 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - restart
Policy string - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - security
Context ContainerGroup Security Context - The security context of the container group. See
security_context
below. - 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.
- spot
Price numberLimit - The maximum hourly price of the ECI spot instance.
- spot
Strategy string - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - status string
- The status of container group.
- {[key: string]: string}
- 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.
- termination
Grace numberPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- volumes
Container
Group Volume[] - The list of volumes. See
volumes
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - 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. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - container_
group_ strname - The name of the container group.
- containers
Sequence[Container
Group Container Args] - The list of containers. See
containers
below. - cpu float
- The amount of CPU resources allocated to the container group.
- dns_
config ContainerGroup Dns Config Args - The structure of dnsConfig. See
dns_config
below. - eip_
bandwidth int - The bandwidth of the EIP. Default value:
5
. - eip_
instance_ strid - The ID of the elastic IP address (EIP).
- host_
aliases Sequence[ContainerGroup Host Alias Args] - HostAliases. See
host_aliases
below. - image_
registry_ Sequence[Containercredentials Group Image Registry Credential Args] - The image registry credential. See
image_registry_credential
below. - init_
containers Sequence[ContainerGroup Init Container Args] - The list of initContainers. See
init_containers
below. - 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 since v1.170.0) The Public IP of the container group.
- intranet_
ip str - (Available since 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - restart_
policy str - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - security_
context ContainerGroup Security Context Args - The security context of the container group. See
security_context
below. - 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.
- spot_
price_ floatlimit - The maximum hourly price of the ECI spot instance.
- spot_
strategy str - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - status str
- The status of container group.
- Mapping[str, str]
- 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.
- termination_
grace_ intperiod_ seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- volumes
Sequence[Container
Group Volume Args] - The list of volumes. See
volumes
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - 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. See
acr_registry_info
below. - 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
. Valid values:true
andfalse
. - container
Group StringName - The name of the container group.
- containers List<Property Map>
- The list of containers. See
containers
below. - cpu Number
- The amount of CPU resources allocated to the container group.
- dns
Config Property Map - The structure of dnsConfig. See
dns_config
below. - eip
Bandwidth Number - The bandwidth of the EIP. Default value:
5
. - eip
Instance StringId - The ID of the elastic IP address (EIP).
- host
Aliases List<Property Map> - HostAliases. See
host_aliases
below. - image
Registry List<Property Map>Credentials - The image registry credential. See
image_registry_credential
below. - init
Containers List<Property Map> - The list of initContainers. See
init_containers
below. - 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 since v1.170.0) The Public IP of the container group.
- intranet
Ip String - (Available since 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. NOTE: From version 1.208.0,
resource_group_id
can be modified. - restart
Policy String - The restart policy of the container group. Valid values:
Always
,Never
,OnFailure
. - security
Context Property Map - The security context of the container group. See
security_context
below. - 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.
- spot
Price NumberLimit - The maximum hourly price of the ECI spot instance.
- spot
Strategy String - Filter the results by ECI spot type. Valid values:
NoSpot
,SpotWithPriceLimit
andSpotAsPriceGo
. Default toNoSpot
. - status String
- The status of container group.
- Map<String>
- 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.
- termination
Grace NumberPeriod Seconds - The buffer time during which the program handles operations before the program stops. Unit: seconds.
- volumes List<Property Map>
- The list of volumes. See
volumes
below. - 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.
NOTE: From version 1.208.0, You can specify up to 10
vswitch_id
. Separate multiple vSwitch IDs with commas (,), such as vsw-,vsw-. attributevswitch_id
updating diff will be ignored when you set multiple vSwitchIds, there is only one validvswitch_id
exists in the set vSwitchIds. - 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, ContainerGroupAcrRegistryInfoArgs
- 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, ContainerGroupContainerArgs
- Image string
- The image of the container.
- Name string
- The name of the mounted volume.
- Args List<string>
- The arguments passed to the commands.
- Commands List<string>
- Commands to be executed inside the container when performing health checks using the command line method.
- Cpu double
- The amount of CPU resources allocated to the container. Default value:
0
. - Environment
Vars List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Environment Var> - The structure of environmentVars. See
environment_vars
below. - Gpu int
- The number GPUs. Default value:
0
. - Image
Pull stringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - Lifecycle
Pre List<string>Stop Handler Execs - The commands to be executed in containers when you use the CLI to specify the preStop callback function.
- Liveness
Probes List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Liveness Probe> - The health check of the container. See
liveness_probe
below. - Memory double
- The amount of memory resources allocated to the container. Default value:
0
. - Ports
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Port> - The structure of port. See
ports
below. - Readiness
Probes List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Readiness Probe> - The health check of the container. See
readiness_probe
below. - Ready bool
- Indicates whether the container passed the readiness probe.
- Restart
Count int - The number of times that the container restarted.
- Security
Contexts List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Security Context> - The security context of the container. See
security_context
below. - Volume
Mounts List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Container Volume Mount> - The structure of volumeMounts. See
volume_mounts
below. - Working
Dir string - The working directory of the container.
- Image string
- The image of the container.
- Name string
- The name of the mounted volume.
- Args []string
- The arguments passed to the commands.
- Commands []string
- Commands to be executed inside the container when performing health checks using the command line method.
- Cpu float64
- The amount of CPU resources allocated to the container. Default value:
0
. - Environment
Vars []ContainerGroup Container Environment Var - The structure of environmentVars. See
environment_vars
below. - Gpu int
- The number GPUs. Default value:
0
. - Image
Pull stringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - Lifecycle
Pre []stringStop Handler Execs - The commands to be executed in containers when you use the CLI to specify the preStop callback function.
- Liveness
Probes []ContainerGroup Container Liveness Probe - The health check of the container. See
liveness_probe
below. - Memory float64
- The amount of memory resources allocated to the container. Default value:
0
. - Ports
[]Container
Group Container Port - The structure of port. See
ports
below. - Readiness
Probes []ContainerGroup Container Readiness Probe - The health check of the container. See
readiness_probe
below. - Ready bool
- Indicates whether the container passed the readiness probe.
- Restart
Count int - The number of times that the container restarted.
- Security
Contexts []ContainerGroup Container Security Context - The security context of the container. See
security_context
below. - Volume
Mounts []ContainerGroup Container Volume Mount - The structure of volumeMounts. See
volume_mounts
below. - Working
Dir string - The working directory of the container.
- image String
- The image of the container.
- name String
- The name of the mounted volume.
- args List<String>
- The arguments passed to the commands.
- commands List<String>
- Commands to be executed inside the container when performing health checks using the command line method.
- cpu Double
- The amount of CPU resources allocated to the container. Default value:
0
. - environment
Vars List<ContainerGroup Container Environment Var> - The structure of environmentVars. See
environment_vars
below. - gpu Integer
- The number GPUs. Default value:
0
. - image
Pull StringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - lifecycle
Pre List<String>Stop Handler Execs - The commands to be executed in containers when you use the CLI to specify the preStop callback function.
- liveness
Probes List<ContainerGroup Container Liveness Probe> - The health check of the container. See
liveness_probe
below. - memory Double
- The amount of memory resources allocated to the container. Default value:
0
. - ports
List<Container
Group Container Port> - The structure of port. See
ports
below. - readiness
Probes List<ContainerGroup Container Readiness Probe> - The health check of the container. See
readiness_probe
below. - ready Boolean
- Indicates whether the container passed the readiness probe.
- restart
Count Integer - The number of times that the container restarted.
- security
Contexts List<ContainerGroup Container Security Context> - The security context of the container. See
security_context
below. - volume
Mounts List<ContainerGroup Container Volume Mount> - The structure of volumeMounts. See
volume_mounts
below. - working
Dir String - The working directory of the container.
- image string
- The image of the container.
- name string
- The name of the mounted volume.
- args string[]
- The arguments passed to the commands.
- commands string[]
- Commands to be executed inside the container when performing health checks using the command line method.
- cpu number
- The amount of CPU resources allocated to the container. Default value:
0
. - environment
Vars ContainerGroup Container Environment Var[] - The structure of environmentVars. See
environment_vars
below. - gpu number
- The number GPUs. Default value:
0
. - image
Pull stringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - lifecycle
Pre string[]Stop Handler Execs - The commands to be executed in containers when you use the CLI to specify the preStop callback function.
- liveness
Probes ContainerGroup Container Liveness Probe[] - The health check of the container. See
liveness_probe
below. - memory number
- The amount of memory resources allocated to the container. Default value:
0
. - ports
Container
Group Container Port[] - The structure of port. See
ports
below. - readiness
Probes ContainerGroup Container Readiness Probe[] - The health check of the container. See
readiness_probe
below. - ready boolean
- Indicates whether the container passed the readiness probe.
- restart
Count number - The number of times that the container restarted.
- security
Contexts ContainerGroup Container Security Context[] - The security context of the container. See
security_context
below. - volume
Mounts ContainerGroup Container Volume Mount[] - The structure of volumeMounts. See
volume_mounts
below. - working
Dir string - The working directory of the container.
- image str
- The image of the container.
- name str
- The name of the mounted volume.
- args Sequence[str]
- The arguments passed to the commands.
- commands Sequence[str]
- Commands to be executed inside the container when performing health checks using the command line method.
- cpu float
- The amount of CPU resources allocated to the container. Default value:
0
. - environment_
vars Sequence[ContainerGroup Container Environment Var] - The structure of environmentVars. See
environment_vars
below. - gpu int
- The number GPUs. Default value:
0
. - image_
pull_ strpolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - lifecycle_
pre_ Sequence[str]stop_ handler_ execs - The commands to be executed in containers when you use the CLI to specify the preStop callback function.
- liveness_
probes Sequence[ContainerGroup Container Liveness Probe] - The health check of the container. See
liveness_probe
below. - memory float
- The amount of memory resources allocated to the container. Default value:
0
. - ports
Sequence[Container
Group Container Port] - The structure of port. See
ports
below. - readiness_
probes Sequence[ContainerGroup Container Readiness Probe] - The health check of the container. See
readiness_probe
below. - ready bool
- Indicates whether the container passed the readiness probe.
- restart_
count int - The number of times that the container restarted.
- security_
contexts Sequence[ContainerGroup Container Security Context] - The security context of the container. See
security_context
below. - volume_
mounts Sequence[ContainerGroup Container Volume Mount] - The structure of volumeMounts. See
volume_mounts
below. - working_
dir str - The working directory of the container.
- image String
- The image of the container.
- name String
- The name of the mounted volume.
- args List<String>
- The arguments passed to the commands.
- commands List<String>
- Commands to be executed inside the container when performing health checks using the command line method.
- cpu Number
- The amount of CPU resources allocated to the container. Default value:
0
. - environment
Vars List<Property Map> - The structure of environmentVars. See
environment_vars
below. - gpu Number
- The number GPUs. Default value:
0
. - image
Pull StringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - lifecycle
Pre List<String>Stop Handler Execs - The commands to be executed in containers when you use the CLI to specify the preStop callback function.
- liveness
Probes List<Property Map> - The health check of the container. See
liveness_probe
below. - memory Number
- The amount of memory resources allocated to the container. Default value:
0
. - ports List<Property Map>
- The structure of port. See
ports
below. - readiness
Probes List<Property Map> - The health check of the container. See
readiness_probe
below. - ready Boolean
- Indicates whether the container passed the readiness probe.
- restart
Count Number - The number of times that the container restarted.
- security
Contexts List<Property Map> - The security context of the container. See
security_context
below. - volume
Mounts List<Property Map> - The structure of volumeMounts. See
volume_mounts
below. - working
Dir String - The working directory of the container.
ContainerGroupContainerEnvironmentVar, ContainerGroupContainerEnvironmentVarArgs
- field
Reves List<Property Map> - key String
- value String
ContainerGroupContainerEnvironmentVarFieldRef, ContainerGroupContainerEnvironmentVarFieldRefArgs
- Field
Path string
- Field
Path string
- field
Path String
- field
Path string
- field_
path str
- field
Path String
ContainerGroupContainerLivenessProbe, ContainerGroupContainerLivenessProbeArgs
- Execs
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Liveness Probe Exec> - Health check using command line method. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - timeout
Seconds Number - Check the timeout, the default is 1 second, the minimum is 1 second.
ContainerGroupContainerLivenessProbeExec, ContainerGroupContainerLivenessProbeExecArgs
- Commands List<string>
- Commands []string
- commands List<String>
- commands string[]
- commands Sequence[str]
- commands List<String>
ContainerGroupContainerLivenessProbeHttpGet, ContainerGroupContainerLivenessProbeHttpGetArgs
ContainerGroupContainerLivenessProbeTcpSocket, ContainerGroupContainerLivenessProbeTcpSocketArgs
- Port int
- Port int
- port Integer
- port number
- port int
- port Number
ContainerGroupContainerPort, ContainerGroupContainerPortArgs
ContainerGroupContainerReadinessProbe, ContainerGroupContainerReadinessProbeArgs
- Execs
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Readiness Probe Exec> - Health check using command line method. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - 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. See
exec
below. - 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. See
http_get
below.NOTE: When you configure
readiness_probe
, you can select only one of theexec
,tcp_socket
,http_get
.- 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. See
tcp_socket
below. - timeout
Seconds Number - Check the timeout, the default is 1 second, the minimum is 1 second.
ContainerGroupContainerReadinessProbeExec, ContainerGroupContainerReadinessProbeExecArgs
- Commands List<string>
- Commands []string
- commands List<String>
- commands string[]
- commands Sequence[str]
- commands List<String>
ContainerGroupContainerReadinessProbeHttpGet, ContainerGroupContainerReadinessProbeHttpGetArgs
ContainerGroupContainerReadinessProbeTcpSocket, ContainerGroupContainerReadinessProbeTcpSocketArgs
- Port int
- Port int
- port Integer
- port number
- port int
- port Number
ContainerGroupContainerSecurityContext, ContainerGroupContainerSecurityContextArgs
- Capabilities
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Container Security Context Capability> - Privileged bool
- Specifies whether to give extended privileges to this container. Default value:
false
. Valid values:true
andfalse
. - Run
As intUser
- Capabilities
[]Container
Group Container Security Context Capability - Privileged bool
- Specifies whether to give extended privileges to this container. Default value:
false
. Valid values:true
andfalse
. - Run
As intUser
- capabilities
List<Container
Group Container Security Context Capability> - privileged Boolean
- Specifies whether to give extended privileges to this container. Default value:
false
. Valid values:true
andfalse
. - run
As IntegerUser
- capabilities
Container
Group Container Security Context Capability[] - privileged boolean
- Specifies whether to give extended privileges to this container. Default value:
false
. Valid values:true
andfalse
. - run
As numberUser
- capabilities
Sequence[Container
Group Container Security Context Capability] - privileged bool
- Specifies whether to give extended privileges to this container. Default value:
false
. Valid values:true
andfalse
. - run_
as_ intuser
- capabilities List<Property Map>
- privileged Boolean
- Specifies whether to give extended privileges to this container. Default value:
false
. Valid values:true
andfalse
. - run
As NumberUser
ContainerGroupContainerSecurityContextCapability, ContainerGroupContainerSecurityContextCapabilityArgs
- Adds List<string>
- Adds []string
- adds List<String>
- adds string[]
- adds Sequence[str]
- adds List<String>
ContainerGroupContainerVolumeMount, ContainerGroupContainerVolumeMountArgs
- mount_
path str - name str
- read_
only bool
ContainerGroupDnsConfig, ContainerGroupDnsConfigArgs
- 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. See
options
below. - 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. See
options
below. - 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. See
options
below. - 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. See
options
below. - 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. See
options
below. - 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. See
options
below. - searches List<String>
- The list of DNS lookup domains.
ContainerGroupDnsConfigOption, ContainerGroupDnsConfigOptionArgs
ContainerGroupHostAlias, ContainerGroupHostAliasArgs
ContainerGroupImageRegistryCredential, ContainerGroupImageRegistryCredentialArgs
- 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, ContainerGroupInitContainerArgs
- 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. Default value:
0
. - Environment
Vars List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container Environment Var> - The structure of environmentVars. See
environment_vars
below. - Gpu int
- The number GPUs. Default value:
0
. - Image string
- The image of the container.
- Image
Pull stringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - Memory double
- The amount of memory resources allocated to the container. Default value:
0
. - Name string
- The name of the mounted volume.
- Ports
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Init Container Port> - The structure of port. See
ports
below. - Ready bool
- Indicates whether the container passed the readiness probe.
- Restart
Count int - The number of times that the container restarted.
- Security
Contexts List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container Security Context> - The security context of the container. See
security_context
below. - Volume
Mounts List<Pulumi.Ali Cloud. Eci. Inputs. Container Group Init Container Volume Mount> - The structure of volumeMounts. See
volume_mounts
below. - 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. Default value:
0
. - Environment
Vars []ContainerGroup Init Container Environment Var - The structure of environmentVars. See
environment_vars
below. - Gpu int
- The number GPUs. Default value:
0
. - Image string
- The image of the container.
- Image
Pull stringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - Memory float64
- The amount of memory resources allocated to the container. Default value:
0
. - Name string
- The name of the mounted volume.
- Ports
[]Container
Group Init Container Port - The structure of port. See
ports
below. - Ready bool
- Indicates whether the container passed the readiness probe.
- Restart
Count int - The number of times that the container restarted.
- Security
Contexts []ContainerGroup Init Container Security Context - The security context of the container. See
security_context
below. - Volume
Mounts []ContainerGroup Init Container Volume Mount - The structure of volumeMounts. See
volume_mounts
below. - 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. Default value:
0
. - environment
Vars List<ContainerGroup Init Container Environment Var> - The structure of environmentVars. See
environment_vars
below. - gpu Integer
- The number GPUs. Default value:
0
. - image String
- The image of the container.
- image
Pull StringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - memory Double
- The amount of memory resources allocated to the container. Default value:
0
. - name String
- The name of the mounted volume.
- ports
List<Container
Group Init Container Port> - The structure of port. See
ports
below. - ready Boolean
- Indicates whether the container passed the readiness probe.
- restart
Count Integer - The number of times that the container restarted.
- security
Contexts List<ContainerGroup Init Container Security Context> - The security context of the container. See
security_context
below. - volume
Mounts List<ContainerGroup Init Container Volume Mount> - The structure of volumeMounts. See
volume_mounts
below. - 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. Default value:
0
. - environment
Vars ContainerGroup Init Container Environment Var[] - The structure of environmentVars. See
environment_vars
below. - gpu number
- The number GPUs. Default value:
0
. - image string
- The image of the container.
- image
Pull stringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - memory number
- The amount of memory resources allocated to the container. Default value:
0
. - name string
- The name of the mounted volume.
- ports
Container
Group Init Container Port[] - The structure of port. See
ports
below. - ready boolean
- Indicates whether the container passed the readiness probe.
- restart
Count number - The number of times that the container restarted.
- security
Contexts ContainerGroup Init Container Security Context[] - The security context of the container. See
security_context
below. - volume
Mounts ContainerGroup Init Container Volume Mount[] - The structure of volumeMounts. See
volume_mounts
below. - 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. Default value:
0
. - environment_
vars Sequence[ContainerGroup Init Container Environment Var] - The structure of environmentVars. See
environment_vars
below. - gpu int
- The number GPUs. Default value:
0
. - image str
- The image of the container.
- image_
pull_ strpolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - memory float
- The amount of memory resources allocated to the container. Default value:
0
. - name str
- The name of the mounted volume.
- ports
Sequence[Container
Group Init Container Port] - The structure of port. See
ports
below. - ready bool
- Indicates whether the container passed the readiness probe.
- restart_
count int - The number of times that the container restarted.
- security_
contexts Sequence[ContainerGroup Init Container Security Context] - The security context of the container. See
security_context
below. - volume_
mounts Sequence[ContainerGroup Init Container Volume Mount] - The structure of volumeMounts. See
volume_mounts
below. - 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. Default value:
0
. - environment
Vars List<Property Map> - The structure of environmentVars. See
environment_vars
below. - gpu Number
- The number GPUs. Default value:
0
. - image String
- The image of the container.
- image
Pull StringPolicy - The restart policy of the image. Default value:
IfNotPresent
. Valid values:Always
,IfNotPresent
,Never
. - memory Number
- The amount of memory resources allocated to the container. Default value:
0
. - name String
- The name of the mounted volume.
- ports List<Property Map>
- The structure of port. See
ports
below. - ready Boolean
- Indicates whether the container passed the readiness probe.
- restart
Count Number - The number of times that the container restarted.
- security
Contexts List<Property Map> - The security context of the container. See
security_context
below. - volume
Mounts List<Property Map> - The structure of volumeMounts. See
volume_mounts
below. - working
Dir String - The working directory of the container.
ContainerGroupInitContainerEnvironmentVar, ContainerGroupInitContainerEnvironmentVarArgs
- field
Reves List<Property Map> - key String
- value String
ContainerGroupInitContainerEnvironmentVarFieldRef, ContainerGroupInitContainerEnvironmentVarFieldRefArgs
- Field
Path string
- Field
Path string
- field
Path String
- field
Path string
- field_
path str
- field
Path String
ContainerGroupInitContainerPort, ContainerGroupInitContainerPortArgs
ContainerGroupInitContainerSecurityContext, ContainerGroupInitContainerSecurityContextArgs
ContainerGroupInitContainerSecurityContextCapability, ContainerGroupInitContainerSecurityContextCapabilityArgs
- Adds List<string>
- Adds []string
- adds List<String>
- adds string[]
- adds Sequence[str]
- adds List<String>
ContainerGroupInitContainerVolumeMount, ContainerGroupInitContainerVolumeMountArgs
- mount_
path str - name str
- read_
only bool
ContainerGroupSecurityContext, ContainerGroupSecurityContextArgs
- Sysctls
List<Pulumi.
Ali Cloud. Eci. Inputs. Container Group Security Context Sysctl> - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See
sysctl
below.
- Sysctls
[]Container
Group Security Context Sysctl - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See
sysctl
below.
- sysctls
List<Container
Group Security Context Sysctl> - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See
sysctl
below.
- sysctls
Container
Group Security Context Sysctl[] - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See
sysctl
below.
- sysctls
Sequence[Container
Group Security Context Sysctl] - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See
sysctl
below.
- sysctls List<Property Map>
- Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. See
sysctl
below.
ContainerGroupSecurityContextSysctl, ContainerGroupSecurityContextSysctlArgs
ContainerGroupVolume, ContainerGroupVolumeArgs
- Config
File List<Pulumi.Volume Config File To Paths Ali Cloud. Eci. Inputs. Container Group Volume Config File Volume Config File To Path> The paths of the ConfigFile volume. See
config_file_volume_config_file_to_paths
below.NOTE: Every volumes mounted must have
name
andtype
attributes.- 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 value:
false
. - Nfs
Volume stringServer - The address of the NFS server.
- Type string
- The type of the volume.
- Config
File []ContainerVolume Config File To Paths Group Volume Config File Volume Config File To Path The paths of the ConfigFile volume. See
config_file_volume_config_file_to_paths
below.NOTE: Every volumes mounted must have
name
andtype
attributes.- 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 value:
false
. - Nfs
Volume stringServer - The address of the NFS server.
- Type string
- The type of the volume.
- config
File List<ContainerVolume Config File To Paths Group Volume Config File Volume Config File To Path> The paths of the ConfigFile volume. See
config_file_volume_config_file_to_paths
below.NOTE: Every volumes mounted must have
name
andtype
attributes.- 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 value:
false
. - nfs
Volume StringServer - The address of the NFS server.
- type String
- The type of the volume.
- config
File ContainerVolume Config File To Paths Group Volume Config File Volume Config File To Path[] The paths of the ConfigFile volume. See
config_file_volume_config_file_to_paths
below.NOTE: Every volumes mounted must have
name
andtype
attributes.- 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 value:
false
. - nfs
Volume stringServer - The address of the NFS server.
- type string
- The type of the volume.
- config_
file_ Sequence[Containervolume_ config_ file_ to_ paths Group Volume Config File Volume Config File To Path] The paths of the ConfigFile volume. See
config_file_volume_config_file_to_paths
below.NOTE: Every volumes mounted must have
name
andtype
attributes.- 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 value:
false
. - nfs_
volume_ strserver - The address of the NFS server.
- type str
- The type of the volume.
- config
File List<Property Map>Volume Config File To Paths The paths of the ConfigFile volume. See
config_file_volume_config_file_to_paths
below.NOTE: Every volumes mounted must have
name
andtype
attributes.- 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 value:
false
. - nfs
Volume StringServer - The address of the NFS server.
- type String
- The type of the volume.
ContainerGroupVolumeConfigFileVolumeConfigFileToPath, ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs
Import
ECI Container Group can be imported using the id, e.g.
$ pulumi import alicloud:eci/containerGroup:ContainerGroup example <container_group_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.