Skip to main content
版本:v1.8

阿里云 DEPLOY-WEBSITE

描述

部署一个静态网站到对象存储服务,比如 ASW S3 或 阿里云 OSS。

示例

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: alibaba-cloud-deploy-website
spec:
components:
- name: deploy-website-example
type: deploy-website
properties:
bucket: deploy-website-example
endpoint: oss-cn-hangzhou.aliyuncs.com
static_web_url: 'https://github.com/cloudflare/cloudflare.github.io.git'

参数说明

属性

名称描述类型是否必须默认值
bucketOSS bucket namestringfalse
endpointOSS bucket endpointstringtrue
static_web_urlThe URL of the static websitestringfalse
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):

名称描述
URLThe URL of the website