Files
kubevela/pkg/apiserver/sync/testdata/test-app3.yaml
Jianbo Sun 6354912bba Feat: sync application from CR to data store (#3428)
* Feat: sync application from CR to data store

Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>

* Feature: address comments

Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>

* Feat: add migrate database feature to avoid max 63 charactor in kubeapi storage

Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>

* update the sync data

Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
2022-03-18 09:55:15 +08:00

33 lines
704 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: example
spec:
components:
- name: blog
type: webservice
properties:
image: wordpress
traits:
- type: gateway
properties:
domain: testsvc.example.com
http:
"/": 8000
- name: nginx2
type: webservice
properties:
image: nginx
policies:
- name: topology-beijing-demo
type: topology
properties:
clusterLabelSelector:
region: beijing
namespace: demo
workflow:
steps:
- type: deploy
name: deploy-local
properties:
policies: ["topology-beijing-demo"]