Skip to main content
版本:v1.6

阿里云 OSS

描述​

用于部署阿里云 OSS 的组件说明。

示例​

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: oss-cloud-source
spec:
components:
- name: sample-oss
type: alibaba-oss
properties:
bucket: vela-website
acl: private
writeConnectionSecretToRef:
name: oss-conn

参数说明​

名称描述类型是否必须默认值
aclOSS bucket ACL, supported 'private', 'public-read', 'public-read-write'。stringfalse
bucketOSS bucket name。stringfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written to。writeConnectionSecretToReffalse

writeConnectionSecretToRef​

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

输出​

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

名称描述
BUCKET_ENDPOINTThe endpoint of the bucket
BUCKET_NAMEThe name of the bucket