Traefik

    Port forward will work as a proxy to allow visiting Traefik dashboard by local port.

    expected output:

    You can visiting Traefik dashboard with address http://127.0.0.1:9000/dashboard/.

    1. vela addon enable traefik serviceType=LoadBalancer
    1. Configure a HTTP domain for a component.
    1. Configure a HTTPS domain for a component.

    You should create a secret that includes the certificate first.

    1. apiVersion: v1
    2. data:
    3. tls.key: <BASE64>
    4. kind: Secret
    5. metadata:
    6. annotations:
    7. config.oam.dev/description: ""
    8. config.oam.dev/catalog: velacore-config
    9. config.oam.dev/multi-cluster: "true"
    10. config.oam.dev/project: addons
    11. config.oam.dev/type: config-tls-certificate
    12. name: example

    The example application configuration:

    defines HTTP rules for mapping requests from a Gateway to Application.

    NameDescriptionTypeRequiredDefault
    pathAn HTTP request path matcher. If this field is not specified, a default prefix match on the “/“ path is provided.pathfalse
    headersConditions to select a HTTP route by matching HTTP request headers.false
    serviceNameSpecify the service name of component, the default is component name.stringfalse
    portSpecify the service port of component.inttrue
    NameDescriptionTypeRequiredDefault
    namestringtrue
    typestringtrue
    valuestringtrue
    NameDescriptionTypeRequiredDefault
    typestringtruePathPrefix
    valuestringtrue/
    NameDescriptionTypeRequiredDefault
    pathAn HTTP request path matcher. If this field is not specified, a default prefix match on the “/“ path is provided.pathfalse
    portSpecify the service port of component.inttrue
    headersConditions to select a HTTP route by matching HTTP request headers.false
    serviceNameSpecify the service name of component, the default is component name.stringfalse
    NameDescriptionTypeRequiredDefault
    namestringtrue
    typestringtrue
    valuestringtrue
    NameDescriptionTypeRequiredDefault
    typestringtruePathPrefix
    valuestringtrue/

    defines TCP rules for mapping requests from a Gateway to Application.

    NameDescriptionTypeRequiredDefault
    rulesSpecify the TCP matchers[]rulestrue
    NameDescriptionTypeRequiredDefault
    gatewayPortSpecify the gateway listener portinttrue
    portSpecify the service port of component.inttrue
    serviceNameSpecify the service name of component, the default is component name.stringfalse

    This component definition is designed to manage the TLS certificate

    NameDescriptionTypeRequiredDefault
    certthe certificate public key encrypted by base64stringtrue
    keythe certificate private key encrypted by base64stringtrue