Gateway for Public Access

    The trait exposes a component to public Internet via a valid domain.

    1. vela up -f https://raw.githubusercontent.com/oam-dev/kubevela/master/docs/examples/vela-app.yaml
    1. application.core.oam.dev/first-vela-app created

    Check the status until we see status is running:

    1. About:
    2. Name: first-vela-app
    3. Namespace: default
    4. Created at: 2022-01-11 22:04:29 +0800 CST
    5. Status: running
    6. Workflow:
    7. mode: DAG
    8. finished: true
    9. Terminated: false
    10. Steps
    11. - id:gfgwqp6pqh
    12. name:express-server
    13. type:apply-component
    14. phase:succeeded
    15. message:
    16. Services:
    17. - Name: express-server Env:
    18. Type: webservice
    19. healthy Ready:1/1
    20. - gateway: Visiting URL: testsvc.example.com, IP: 1.5.1.1
    1. vela status first-vela-app --endpoint

    Then you will be able to visit this application via its domain.

    1. curl -H "Host:testsvc.example.com" http://<your ip address>/
    1. <xmp>
    2. Hello World
    3. ## .
    4. ## ## ## ==
    5. ## ## ## ## ## ===
    6. /""""""""""""""""\___/ ===
    7. ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
    8. \______ o _,/
    9. \ \ _,'
    10. `'--.._\..--''
    11. </xmp>

    Specification