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"]