Skip to main content
Version: v1.9

Alibaba Cloud DEPLOY-WEBSITE

Description

Deploy a static website in object stroage, like S3 or OSS.

Examples

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

Specification

Properties

NameDescriptionTypeRequiredDefault
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

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse

Outputs

If writeConnectionSecretToRef is set, a secret will be generated with these keys as below:

NameDescription
URLThe URL of the website