Skip to main content
版本:v1.9

阿里云 OSS-WEBSITE

描述

使用阿里云 OSS 托管静态网站。

示例

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: alibaba-cloud-oss-webstie
spec:
components:
- name: oss-website-example
type: alibaba-oss-website
properties:
acl: public-read
bucket: oss-website-example
index_document: index.html
error_document: 404.html
writeConnectionSecretToRef:
name: oss-website-conn

参数说明

属性

名称描述类型是否必须默认值
aclOSS bucket ACL, supported 'private', 'public-read', 'public-read-write'.stringfalse
bucketOSS bucket name.stringfalse
error_documentOSS bucket static website error document.stringfalse
index_documentOSS bucket static website index document.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_NAME
EXTRANET_ENDPOINTOSS bucket external endpoint
INTRANET_ENDPOINTOSS bucket internal endpoint