Files
kubevela/pkg/apiserver/sync/testdata/test-app1.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

37 lines
839 B
YAML

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