Membuat cache gambar untuk Elastic Container Instance (ECI).
Syntax
{
"Type": "ALIYUN::ECI::ImageCache",
"Properties": {
"EipInstanceId": String,
"Image": List,
"SecurityGroupId": String,
"ResourceGroupId": String,
"VSwitchId": String,
"ImageRegistryCredential": List,
"ImageCacheName": String
}
}
Properties
|
Property Name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
EipInstanceId |
String |
No |
No |
ID dari alamat IP elastis (EIP). |
Instans ECI memerlukan akses Internet untuk menarik gambar. Gunakan EIP atau konfigurasikan NAT gateway untuk vSwitch tersebut. Disarankan menggunakan NAT gateway. |
|
Image |
List |
Yes |
No |
Gambar yang akan di-cache. Setiap item merupakan ID gambar. |
Maksimum: 20 gambar. |
|
SecurityGroupId |
String |
Yes |
No |
ID security group. |
None. |
|
ResourceGroupId |
String |
No |
No |
ID kelompok sumber daya. |
None. |
|
VSwitchId |
String |
Yes |
No |
ID vSwitch. |
None. |
|
ImageRegistryCredential |
List |
No |
No |
Kredensial logon untuk repository image. |
Tidak diperlukan untuk gambar Alibaba Cloud Container Registry (ACR). Maksimum: 10 repository. |
|
ImageCacheName |
String |
Yes |
No |
Nama cache gambar. |
None. |
ImageRegistryCredential syntax
"ImageRegistryCredential": [
{
"Server": String,
"UserName": String,
"Password": String
}
]
ImageRegistryCredential properties
|
Property name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
Server |
String |
No |
No |
Alamat repository image, tidak termasuk awalan |
None. |
|
UserName |
String |
No |
No |
Username untuk repository image. |
None. |
|
Password |
String |
No |
No |
Password untuk repository image. |
None. |
Return values
Fn::GetAtt
-
ImageCacheId: ID dari cache gambar.