Implanta um aplicativo em um cluster do Container Service for Kubernetes (ACK).
Sintaxe
{
"Type": "ALIYUN::CS::ApplicationDeployment",
"Properties": {
"ClusterId": String,
"ChartUrl": String,
"Namespace": String,
"Name": String,
"Type": String,
"Values": Map
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
ClusterId |
String |
Sim |
Não |
ID do cluster. |
Nenhuma. |
|
ChartUrl |
String |
Sim |
Não |
URL do pacote de chart do Helm. |
Nenhuma. |
|
Namespace |
String |
Sim |
Não |
Namespace de implantação do aplicativo. |
Nenhuma. |
|
Name |
String |
Sim |
Não |
Nome do aplicativo. |
Nenhuma. |
|
Type |
String |
Sim |
Não |
Tipo do aplicativo. |
|
|
Values |
Map |
Não |
Não |
Valores personalizados do aplicativo. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
TaskId: ID da tarefa de implantação.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Type:
Type: String
Description:
en: Type of the deployed application, currently can only be helm.
AllowedValues:
- helm
Required: true
ClusterId:
Type: String
Description:
en: The cluster id of the deployed application.
Required: true
AssociationProperty: ALIYUN::CS::Cluster::ClusterId
ChartUrl:
Type: String
Description:
en: Helm chart package URL, must be a valid URL.
Required: true
Default: https://aliacs-app-catalog.oss-cn-hangzhou.aliyuncs.com/charts-incubator/ack-knative-kourier-1.4.0.tgz
Namespace:
Type: String
Description:
en: Deployment namespace.
Required: true
MinLength: 3
MaxLength: 64
Default: knative-serving
Name:
Type: String
Description:
en: Name of the deployed application.
Required: true
MinLength: 3
MaxLength: 64
Default: knative-kourier
Resources:
ApplicationDeployment:
Type: ALIYUN::CS::ApplicationDeployment
Properties:
Type:
Ref: Type
ClusterId:
Ref: ClusterId
Values:
version: v1.10.9-aliyun.1
regionID:
Ref: ALIYUN::Region
ChartUrl:
Ref: ChartUrl
Namespace:
Ref: Namespace
Name:
Ref: Name
Outputs:
TaskId:
Description: The task ID of the application deployment.
Value:
Fn::GetAtt:
- ApplicationDeployment
- TaskId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Type": {
"Type": "String",
"Description": {
"en": "Type of the deployed application, currently can only be helm."
},
"AllowedValues": [
"helm"
],
"Required": true
},
"ClusterId": {
"Type": "String",
"Description": {
"en": "The cluster id of the deployed application."
},
"Required": true,
"AssociationProperty": "ALIYUN::CS::Cluster::ClusterId"
},
"ChartUrl": {
"Type": "String",
"Description": {
"en": "Helm chart package URL, must be a valid URL."
},
"Required": true,
"Default": "https://aliacs-app-catalog.oss-cn-hangzhou.aliyuncs.com/charts-incubator/ack-knative-kourier-1.4.0.tgz"
},
"Namespace": {
"Type": "String",
"Description": {
"en": "Deployment namespace."
},
"Required": true,
"MinLength": 3,
"MaxLength": 64,
"Default": "knative-serving"
},
"Name": {
"Type": "String",
"Description": {
"en": "Name of the deployed application."
},
"Required": true,
"MinLength": 3,
"MaxLength": 64,
"Default": "knative-kourier"
}
},
"Resources": {
"ApplicationDeployment": {
"Type": "ALIYUN::CS::ApplicationDeployment",
"Properties": {
"Type": {
"Ref": "Type"
},
"ClusterId": {
"Ref": "ClusterId"
},
"Values": {
"version": "v1.10.9-aliyun.1",
"regionID": {
"Ref": "ALIYUN::Region"
}
},
"ChartUrl": {
"Ref": "ChartUrl"
},
"Namespace": {
"Ref": "Namespace"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"TaskId": {
"Description": "The task ID of the application deployment.",
"Value": {
"Fn::GetAtt": [
"ApplicationDeployment",
"TaskId"
]
}
}
}
}