Cybus::IngressRoute
Create secure entry points from outside Connectware to your service containers.
The Cybus::IngressRoute resource defines an external entry point (HTTPS address or TCP port) that Connectware forwards to a specific port and path in a service container (HTTP address or TCP port).
When to Use
Use Cybus::IngressRoute when your container must be reachable from outside Connectware. For example, for web dashboards, APIs, or TCP-based protocols.
Connectware creates a private, isolated virtual network for each installed service and assigns all its containers to this network.
Creating an IngressRoute
To expose your service container to users outside of Connectware, you must define a Cybus::IngressRoute resource. This resource acts as a proxy entry point, mapping external traffic to the internal container endpoint.
Define a route by specifying the target container, which is an already defined Cybus::Container resource. The route will point to target at the container instance, which is where the port and (optionally) address path in the container is specified.
The route is reachable from the outside by accessing the Connectware using a URL with the first part being the service ID of the service container, followed by the specified slug of this route. Any additional parts of the URL after the slug will be attached to the request that is forwarded to the service container.
IngressRoute Properties
The following table describes the properties available for Cybus::IngressRoute. Some properties are required only for HTTP or TCP routes.
container
Reference to an already declared Cybus::Container. Use !ref <resourceID>.
Required
Type:
string
slug
The last part of the ingress route URL (HTTP only).
Required for HTTP routes
Omit for TCP routes: This parameter is ignored for TCP forwarding.
Type:
stringMaximum length: 20 characters
Must match the following regular expression (see regexr.com for validation):
target
Optional
Type:
objectProperties:
path
If specified, the proxy will rewrite the path. Use this if the base path of the target HTTP server cannot be changed.
Optional
Type:
string
port
The port of the container the proxy should point to. This must be a Docker-exposed port.
Optional
Type:
integerDefault:
80
type
Specifies whether to forward HTTP or TCP traffic.
Optional
Type:
enumDefault:
httpAllowed values:
httptcp
containerPort
The internal TCP port on the service container.
Required for TCP routes
Type:
integer
connectwarePort
The externally reachable port for TCP connections.
Required for TCP routes
Type:
integer
Only ports between 40000-40100 may be used.
headers
An array of strings representing headers to be forwarded to the target container. The format of each string must be <header name>:<header value>.
Example
HTTP Example
Result (HTTP)
If Connectware runs at 1.2.3.4 and the serviceId is abc123, then:
...is forwarded to:
...with the specified headers added to the request.
TCP Example
Result (TCP)
If Connectware runs at 1.2.3.4:
...is forwarded to:
Last updated
Was this helpful?

