Traefik

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

    expected output:

    Setup with Specified Service Type

    If your cluster has cloud LoadBalancer available:

    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/alias: ""
    8. config.oam.dev/description: ""
    9. config.oam.dev/catalog: velacore-config
    10. config.oam.dev/multi-cluster: "true"
    11. config.oam.dev/project: addons
    12. config.oam.dev/type: config-tls-certificate
    13. name: example

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

    Properties

    rules
    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
    headers
    NameDescriptionTypeRequiredDefault
    namestringtrue
    typestringtrue
    valuestringtrue
    path
    NameDescriptionTypeRequiredDefault
    typestringtruePathPrefix
    valuestringtrue/

    https-route(trait)

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

    Properties

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

    Properties

    NameDescriptionTypeRequiredDefault
    rulesSpecify the TCP matchers[]rulestrue
    rules
    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

    config-tls-certificate(config)

    This component definition is designed to manage the TLS certificate

    Properties

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