Skip to content

ContainerGroupProps

Properties for defining a ContainerGroup.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-eci-containergroup

Initializer

using AlibabaCloud.SDK.ROS.CDK.Eci;
new ContainerGroupProps {
    object Container,
    object ContainerGroupName,
    object AcrRegistryInfo = null,
    object ActiveDeadlineSeconds = null,
    object AutoMatchImageCache = null,
    object Cpu = null,
    object DnsConfig = null,
    object EipInstanceId = null,
    object HostAliase = null,
    object ImageRegistryCredential = null,
    object ImageSnapshotId = null,
    object InitContainer = null,
    object InstanceType = null,
    object Ipv6AddressCount = null,
    object Memory = null,
    object RamRoleName = null,
    object ResourceGroupId = null,
    object RestartPolicy = null,
    object SecurityContextSysctl = null,
    object SecurityGroupId = null,
    object SlsEnable = null,
    object SpotPriceLimit = null,
    object SpotStrategy = null,
    object Tag = null,
    object TerminationGracePeriodSeconds = null,
    object Volume = null,
    object VSwitchId = null,
    object ZoneId = null
};

Properties

Name Type Description
Container object Property container: The containers that constitute the container group.
ContainerGroupName object Property containerGroupName: The name of the container group.
AcrRegistryInfo object Property acrRegistryInfo: Enterprise Edition access credential configuration information.
ActiveDeadlineSeconds object Property activeDeadlineSeconds: The validity period in seconds.
AutoMatchImageCache object Property autoMatchImageCache: Specifies whether to automatically match the image cache.
Cpu object Property cpu: CPU size.
DnsConfig object Property dnsConfig: The information about DNS configurations.
EipInstanceId object Property eipInstanceId: Elastic IP ID.
HostAliase object Property hostAliase: Customize the hostname mapping of a container inside the pod.
ImageRegistryCredential object Property imageRegistryCredential: The information that you need to log on to the container image repository, including the server address, username, and password.
ImageSnapshotId object Property imageSnapshotId: Image cache ID or snapshot ID.
InitContainer object Property initContainer: The containers that constitute the container group for initializing.
InstanceType object Property instanceType: The type of the ECS instance.
Ipv6AddressCount object Property ipv6AddressCount: The number of IPv6 addresses.
Memory object Property memory: memory size.
RamRoleName object Property ramRoleName: The RAM role that the container group assumes.
ResourceGroupId object Property resourceGroupId: Resource group id.
RestartPolicy object Property restartPolicy: The policy for restarting the instance.
SecurityContextSysctl object Property securityContextSysctl: ECI Sysctl is valid for every container in ECI.
SecurityGroupId object Property securityGroupId: The ID of the security group to which the instance belongs.
SlsEnable object Property slsEnable: Enable user log collection.
SpotPriceLimit object Property spotPriceLimit: Set the hourly maximum price of the instance.
SpotStrategy object Property spotStrategy: Instance preemption strategy.
Tag object Property tag: The list of container group tags in the form of key\/value pairs.
TerminationGracePeriodSeconds object Property terminationGracePeriodSeconds: The buffer time for the program to handle operations before it is stopped.
Volume object Property volume: The data volume.
VSwitchId object Property vSwitchId: The ID of the specified VSwitch.
ZoneId object Property zoneId: The ID of the zone in which the instance resides.

ContainerRequired

public object Container { get; set; }
  • Type: object

Property container: The containers that constitute the container group.


ContainerGroupNameRequired

public object ContainerGroupName { get; set; }
  • Type: object

Property containerGroupName: The name of the container group.

The length is [2,128] English lowercase letters, numbers or hyphens (-), cannot begin or end with a hyphens.


AcrRegistryInfoOptional

public object AcrRegistryInfo { get; set; }
  • Type: object

Property acrRegistryInfo: Enterprise Edition access credential configuration information.


ActiveDeadlineSecondsOptional

public object ActiveDeadlineSeconds { get; set; }
  • Type: object

Property activeDeadlineSeconds: The validity period in seconds.


AutoMatchImageCacheOptional

public object AutoMatchImageCache { get; set; }
  • Type: object

Property autoMatchImageCache: Specifies whether to automatically match the image cache.


CpuOptional

public object Cpu { get; set; }
  • Type: object

Property cpu: CPU size.


DnsConfigOptional

public object DnsConfig { get; set; }
  • Type: object

Property dnsConfig: The information about DNS configurations.


EipInstanceIdOptional

public object EipInstanceId { get; set; }
  • Type: object

Property eipInstanceId: Elastic IP ID.


HostAliaseOptional

public object HostAliase { get; set; }
  • Type: object

Property hostAliase: Customize the hostname mapping of a container inside the pod.


ImageRegistryCredentialOptional

public object ImageRegistryCredential { get; set; }
  • Type: object

Property imageRegistryCredential: The information that you need to log on to the container image repository, including the server address, username, and password.


ImageSnapshotIdOptional

public object ImageSnapshotId { get; set; }
  • Type: object

Property imageSnapshotId: Image cache ID or snapshot ID.


InitContainerOptional

public object InitContainer { get; set; }
  • Type: object

Property initContainer: The containers that constitute the container group for initializing.


InstanceTypeOptional

public object InstanceType { get; set; }
  • Type: object

Property instanceType: The type of the ECS instance.


Ipv6AddressCountOptional

public object Ipv6AddressCount { get; set; }
  • Type: object

Property ipv6AddressCount: The number of IPv6 addresses.


MemoryOptional

public object Memory { get; set; }
  • Type: object

Property memory: memory size.


RamRoleNameOptional

public object RamRoleName { get; set; }
  • Type: object

Property ramRoleName: The RAM role that the container group assumes.

ECI and ECS share the same RAM role.


ResourceGroupIdOptional

public object ResourceGroupId { get; set; }
  • Type: object

Property resourceGroupId: Resource group id.


RestartPolicyOptional

public object RestartPolicy { get; set; }
  • Type: object

Property restartPolicy: The policy for restarting the instance.

Default value: Always.


SecurityContextSysctlOptional

public object SecurityContextSysctl { get; set; }
  • Type: object

Property securityContextSysctl: ECI Sysctl is valid for every container in ECI.

Currently only two Sysctl keyNames are supported: Kernel.shm_rmid_forced Kernel.msgmax


SecurityGroupIdOptional

public object SecurityGroupId { get; set; }
  • Type: object

Property securityGroupId: The ID of the security group to which the instance belongs.

Instances in the same security group can access one another. If no security group is specified, the system automatically uses the default security group in the region you select. If you do not have a default security group in this region, the system automatically creates a default security group and adds the container protocol and port you declared to the inbound direction rules of this security group.


SlsEnableOptional

public object SlsEnable { get; set; }
  • Type: object

Property slsEnable: Enable user log collection.

The default is False.


SpotPriceLimitOptional

public object SpotPriceLimit { get; set; }
  • Type: object

Property spotPriceLimit: Set the hourly maximum price of the instance.

It supports a maximum of 3 decimal places. It takes effect when the value of the parameter SpotStrategy is SpotWithPriceLimit.


SpotStrategyOptional

public object SpotStrategy { get; set; }
  • Type: object

Property spotStrategy: Instance preemption strategy.

Ranges: NoSpot (default): normal pay-as-you-go instances. SpotWithPriceLimit: Preemptive instance that sets a cap price. SpotAsPriceGo: The system automatically bids, following the current market actual price.


TagOptional

public object Tag { get; set; }
  • Type: object

Property tag: The list of container group tags in the form of key\/value pairs.

You can define a maximum of 20 tags for each container group.


TerminationGracePeriodSecondsOptional

public object TerminationGracePeriodSeconds { get; set; }
  • Type: object

Property terminationGracePeriodSeconds: The buffer time for the program to handle operations before it is stopped.


VolumeOptional

public object Volume { get; set; }
  • Type: object

Property volume: The data volume.

You can specify a maximum of 20 data volumes.


VSwitchIdOptional

public object VSwitchId { get; set; }
  • Type: object

Property vSwitchId: The ID of the specified VSwitch.

If no switch is specified, the system automatically uses the default switch in the default VPC in the selected region. If no default VPC or default switch is available in the region, the system automatically creates a default VPC and a default switch


ZoneIdOptional

public object ZoneId { get; set; }
  • Type: object

Property zoneId: The ID of the zone in which the instance resides.

If you leave the parameter blank, the system assigns a zone for you. The default value is blank.