Skip to main content
版本:v1.9

Azure STORAGE-ACCOUNT

描述

用于部署 Azure Blob Storage 账号的的组件说明

示例

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: storage-account-dev
spec:
components:
- name: storage-account-dev
type: azure-storage-account
properties:
create_rsg: false
resource_group_name: "weursgappdev01"
location: "West Europe"
name: "appdev01"
tags: |
{
ApplicationName = "Application01"
Terraform = "Yes"
}
static_website: |
[{
index_document = "index.html"
error_404_document = "index.html"
}]

writeConnectionSecretToRef:
name: storage-account-dev
namespace: vela-system

参数说明

属性

名称描述类型是否必须默认值
create_rsgConditional if resource group should be created. Defaults to 'true'.boolfalse
locationLocation of storage account. Defaults to 'West Europe'.stringfalse
nameName of storage account. Defaults to 'storageaccount'.stringfalse
resource_group_nameName of resource group. Defaults to 'rsg'.stringfalse
static_websiteStatic website configuration. Defaults to disabled.list(map(string))false
tagsTags for storage account. Defaults to '{}'.map(string)false
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef

名称描述类型是否必须默认值
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse

输出

如果设置了 writeConnectionSecretToRef,一个 Kubernetes Secret 将会被创建,并且,它的数据里有这些键(key):

名称描述
BLOB_CONNECTION_STRINGBlob storage connection string
BLOB_WEB_ENDPOINTBlob storage static web endpoint