ALIYUN::CS::ApplicationDeployment は、アプリケーションをデプロイするために使用されます。
構文
{
"Type": "ALIYUN::CS::ApplicationDeployment",
"Properties": {
"ClusterId": String,
"ChartUrl": String,
"Namespace": String,
"Name": String,
"Type": String,
"Values": Map
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
ClusterId | String | はい | いいえ | クラスターの ID。 | なし。 |
ChartUrl | String | はい | いいえ | チャートのリクエスト URL。 | なし。 |
Namespace | String | はい | いいえ | アプリケーションの名前空間。 | なし。 |
Name | String | はい | いいえ | アプリケーションの名前。 | なし。 |
Type | String | はい | いいえ | デプロイ可能なアプリケーションのタイプ。 |
|
Values | Map | いいえ | いいえ | アプリケーションのカスタム値。 | なし。 |
戻り値
Fn::GetAtt
TaskId: アプリケーションをデプロイするために実行されるタスクの ID。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Type:
Type: String
Description:
ja: デプロイされるアプリケーションのタイプ。現在は helm のみ可能です。
AllowedValues:
- helm
Required: true
ClusterId:
Type: String
Description:
ja: デプロイされるアプリケーションのクラスター ID。
Required: true
AssociationProperty: ALIYUN::CS::Cluster::ClusterId
ChartUrl:
Type: String
Description:
ja: Helm chart パッケージ URL。有効な 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:
ja: デプロイメント名前空間。
Required: true
MinLength: 3
MaxLength: 64
Default: knative-serving
Name:
Type: String
Description:
ja: デプロイされるアプリケーションの名前。
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: アプリケーションデプロイメントのタスク ID。
Value:
Fn::GetAtt:
- ApplicationDeployment
- TaskId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Type": {
"Type": "String",
"Description": {
"ja": "デプロイされるアプリケーションのタイプ。現在は helm のみ可能です。"
},
"AllowedValues": [
"helm"
],
"Required": true
},
"ClusterId": {
"Type": "String",
"Description": {
"ja": "デプロイされるアプリケーションのクラスター ID。"
},
"Required": true,
"AssociationProperty": "ALIYUN::CS::Cluster::ClusterId"
},
"ChartUrl": {
"Type": "String",
"Description": {
"ja": "Helm chart パッケージ URL。有効な 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": {
"ja": "デプロイメント名前空間。"
},
"Required": true,
"MinLength": 3,
"MaxLength": 64,
"Default": "knative-serving"
},
"Name": {
"Type": "String",
"Description": {
"ja": "デプロイされるアプリケーションの名前。"
},
"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": "アプリケーションデプロイメントのタスク ID。",
"Value": {
"Fn::GetAtt": [
"ApplicationDeployment",
"TaskId"
]
}
}
}
}