Version: v1.2
Gateway for Public Access
The gateway
trait exposes a component to public Internet via a valid domain.
#
How to useAttach a gateway
trait to the component you want to expose and deploy.
Check the status until we see status
is running
:
You can also get the endpoint by:
Then you will be able to visit this application via its domain.
⚠️ This section requires your runtime cluster has a working ingress controller.
#
SpecificationNAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
---|---|---|---|---|
http | Specify the mapping relationship between the http path and the workload port | map[string]int | true | |
class | Specify the class of ingress to use | string | true | nginx |
classInSpec | Set ingress class in '.spec.ingressClassName' instead of 'kubernetes.io/ingress.class' annotation. | bool | false | false |
domain | Specify the domain you want to expose | string | true |