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:
vela addon enable traefik serviceType=LoadBalancer
- Configure a HTTP domain for a component.
- Configure a HTTPS domain for a component.
You should create a secret that includes the certificate first.
apiVersion: v1
data:
tls.key: <BASE64>
kind: Secret
metadata:
annotations:
config.oam.dev/alias: ""
config.oam.dev/description: ""
config.oam.dev/catalog: velacore-config
config.oam.dev/multi-cluster: "true"
config.oam.dev/project: addons
config.oam.dev/type: config-tls-certificate
name: example
defines HTTP rules for mapping requests from a Gateway to Application.
Properties
rules
Name | Description | Type | Required | Default |
---|
path | An HTTP request path matcher. If this field is not specified, a default prefix match on the “/“ path is provided. | path | false | |
headers | Conditions to select a HTTP route by matching HTTP request headers. | | false | |
serviceName | Specify the service name of component, the default is component name. | string | false | |
port | Specify the service port of component. | int | true | |
Name | Description | Type | Required | Default |
---|
name | | string | true | |
type | | string | true | |
value | | string | true | |
path
Name | Description | Type | Required | Default |
---|
type | | string | true | PathPrefix |
value | | string | true | / |
https-route(trait)
defines HTTPS rules for mapping requests from a Gateway to Application.
Properties
rules
Name | Description | Type | Required | Default |
---|
path | An HTTP request path matcher. If this field is not specified, a default prefix match on the “/“ path is provided. | | false | |
port | Specify the service port of component. | int | true | |
headers | Conditions to select a HTTP route by matching HTTP request headers. | []headers | false | |
serviceName | Specify the service name of component, the default is component name. | string | false | |
Name | Description | Type | Required | Default |
---|
name | | string | true | |
type | | string | true | |
value | | string | true | |
path
Name | Description | Type | Required | Default |
---|
type | | string | true | PathPrefix |
value | | string | true | / |
secrets
Properties
Name | Description | Type | Required | Default |
---|
rules | Specify the TCP matchers | []rules | true | |
rules
Name | Description | Type | Required | Default |
---|
gatewayPort | Specify the gateway listener port | int | true | |
port | Specify the service port of component. | int | true | |
serviceName | Specify the service name of component, the default is component name. | string | false | |
config-tls-certificate(config)
This component definition is designed to manage the TLS certificate
Properties
Name | Description | Type | Required | Default |
---|
cert | the certificate public key encrypted by base64 | string | true | |
key | the certificate private key encrypted by base64 | string | true | |