Mesh Ingress¶
The mesh ingress allows users to peer external execution and hop nodes into the Ascender control plane. This guide focuses on how to enable and configure the mesh ingress. For more information about remote execution and hop nodes and how to create them, refer to the Managing Capacity With Instances chapter of the AWX Administration Guide.
Prerequisites¶
- AWX operator version > 2.11.0
- AWX > 23.8.0
Deploy and configure AscenderMeshIngress¶
Note
The mesh ingress uses the control_plane_ee_image and image_pull_policy fields of the Ascender instance to determine image and policy to be adopted.
Defaulted to quay.io/ansible/awx-ee:latest and Always.
Currently there are no dedicated parameters to specify the image and policy.
On Red Hat OpenShift with Operator managed Route¶
To deploy a mesh ingress on OpenShift, create the AscenderMeshIngress resource on the namespace where your Ascender instance is running on.
Example:
---
apiVersion: ascender.ansible.com/v1alpha1
kind: AscenderMeshIngress
metadata:
name: <mesh ingress name>
spec:
deployment_name: <awx instance name>
On Kubernetes with Operator managed Ingress (NGINX)¶
To deploy a mesh ingress on Kubernetes cluster which has NGINX Ingress Controller, create the AscenderMeshIngress resource on the namespace where your Ascender instance is running on.
Note that AscenderMeshIngress requires SSL Passthrough enabled which is disabled by default. Ensure it is enabled on your NGINX Ingress Controller.
By specifying ingress_controller as nginx, Ascender Operator will generate Ingress resource that has nginx.ingress.kubernetes.io/ssl-passthrough annotation set to "true".
Example:
---
apiVersion: ascender.ansible.com/v1alpha1
kind: AscenderMeshIngress
metadata:
name: <mesh ingress name>
spec:
deployment_name: <awx instance name>
ingress_type: Ingress
ingress_controller: nginx
ingress_class_name: nginx
external_hostname: <fqdn for mesh ingress>
On Kubernetes with Operator managed Ingress (Traefik)¶
To deploy a mesh ingress on Kubernetes cluster which has Traefik Kubernetes Ingress provider, create the AscenderMeshIngress resource on the namespace where your Ascender instance is running on.
Note that by deploying following AscenderMeshIngress, Ascender Operator will generate IngressRouteTCP resource that has websecure as an entryPoints. If this does not satisfy your requirement, refer to User managed Ingress section and create an IngressRouteTCP resource manually.
Example:
---
apiVersion: ascender.ansible.com/v1alpha1
kind: AscenderMeshIngress
metadata:
name: <mesh ingress name>
spec:
deployment_name: <awx instance name>
ingress_type: IngressRouteTCP
ingress_controller: traefik
ingress_class_name: traefik
ingress_api_version: traefik.io/v1alpha1
external_hostname: <fqdn for mesh ingress>
Tip
Ascender Operator supports both API groups traefik.io and traefik.containo.us in ingress_api_version for Traefik, but it is recommended to use traefik.io since traefik.containo.us is deprecated in Traefik v2.10 and is removed in Traefik v3. Refer to Traefik documentation for more information about deprecation.
If you can't see any IngressRouteTCP resources by kubectl command after deploying mesh ingress, you should fully qualify the resource name with API group, kubectl get ingressroutetcp.traefik.io or kubectl get ingressroutetcp.traefik.containo.us for example.
On Kubernetes with Operator managed Gateway API (TLSRoute)¶
Ascender Operator can create a Gateway API TLSRoute (gateway.networking.k8s.io/v1) and attach it to an existing Gateway.
It requires the Gateway API CRDs v1.5.0 or later, a Gateway API implementation that supports TLSRoute, and a Gateway listener with protocol: TLS and tls.mode: Passthrough that admits TLSRoutes from the mesh ingress namespace. Receptor terminates TLS itself.
listeners:
- name: mesh # matches sectionName
protocol: TLS
port: 443
hostname: <fqdn for mesh ingress>
tls:
mode: Passthrough
allowedRoutes:
kinds:
- kind: TLSRoute
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: <ascender namespace>
Example:
---
apiVersion: ascender.ansible.com/v1alpha1
kind: AscenderMeshIngress
metadata:
name: <mesh ingress name>
spec:
deployment_name: <ascender instance name>
ingress_type: tlsroute
external_hostname: <fqdn for mesh ingress>
gateway_parent_refs:
- name: <gateway name>
namespace: <gateway namespace>
sectionName: mesh
external_hostname is required; the Gateway routes passthrough traffic by TLS SNI. Remote nodes connect to external_port, which defaults to 443 and must match the listener port.
Changing ingress_type follows the same rules as the Ascender instance. When switching to tlsroute, the previous object is deleted only after the TLSRoute is accepted.
On Kubernetes with User managed Ingress¶
To deploy a mesh ingress on Kubernetes cluster, create the AscenderMeshIngress resource on the namespace where your Ascender instance is running on.
Alternatively, if you wish to create your own Ingress resource, you can deploy a mesh ingress with ingress_type set to none and then manually create an Ingress resource with any configuration.
In this case, the external_hostname is still required as it is used to generate the certificate that will be used by Receptor.
Example:
---
apiVersion: ascender.ansible.com/v1alpha1
kind: AscenderMeshIngress
metadata:
name: <mesh ingress name>
spec:
deployment_name: <awx instance name>
ingress_type: none # This line can be omitted since this is the default value
external_hostname: <fqdn for mesh ingress>
The requirements for user managed Ingress resource are as follows:
- Supports WebSocket
- SSL/TLS Passthrough enabled
- Accessible over port
443 - Having the same hostname as
external_hostnamein the AscenderMeshIngress resource - Routing the traffic to port
27199of the Service of the same name as the AscenderMeshIngress resource
These are example Ingress resources for NGINX and Traefik.
# Ingress for NGINX Ingress Controller
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: <mesh ingress name>
annotations:
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
spec:
ingressClassName: nginx
rules:
- host: <fqdn for mesh ingress>
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: <mesh ingress name>
port:
number: 27199
# Ingress for Traefik Kubernetes Ingress provider
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: <mesh ingress name>
spec:
entryPoints:
- websecure
routes:
- match: HostSNI(`<fqdn for mesh ingress>`)
services:
- name: <mesh ingress name>
port: 27199
tls:
passthrough: true
Validating setup of Mesh Ingress¶
After AscenderMeshIngress has been successfully created, a new Instance with the same name will be registered to Ascender and will be visible on the Instance UI page

The Instance should have at least 2 listener addresses.
In this example, the mesh ingress has two listener addresses:
- one for internal, that is used for peering to by all control nodes (top)
- one for external, that is exposed to a route so external execution nodes can peer into it (bottom))

When selecting peer for new instance the mesh ingress instance should now be present as a option.

For more information about how to create external remote execution and hop nodes and configuring the mesh, see the AWX documentation on Add a instance.
Custom Resource Definitions¶
AscenderMeshIngress¶
AscenderMeshIngress controls the deployment and configuration of mesh ingress on Ascender
| Name | Description |
|---|---|
apiVersion |
ascender.ansible.com/v1alpha1 |
kind |
AscenderMeshIngress |
metadata (ObjectMeta) |
Standard object's metadata. More info |
spec (AscenderMeshIngressSpec) |
Spec is the desired state of the AscenderMeshIngress. More info |
status (AscenderMeshIngressStatus) |
Status is the current state of the AscenderMeshIngress. More info |
AscenderMeshIngressSpec¶
AscenderMeshIngressSpec is the description of the configuration for AscenderMeshIngress.
| Name | Description | Default |
|---|---|---|
deployment_name (string), required |
Name of the Ascender deployment to create the Mesh Ingress for. | awx |
ingress_type (string) |
Ingress type for ingress managed by the operator. Options: none, Ingress, IngressRouteTCP, Route, TLSRoute, in any case. See Changing ingress_type |
Route (on OpenShift), none (on Kubernetes) |
external_hostname (string) |
External hostname is an optional field used for specifying the external hostname defined in an Ingress. This parameter is automatically generated on OpenShift | N/A |
external_ipaddress (string) |
External IP Address is an optional field used for specifying the external IP address defined in an Ingress | N/A |
external_port (integer) |
Port remote nodes dial on external_hostname: the port of the listener the mesh ingress is served on |
443 |
ingress_api_version (string) |
API Version for ingress managed by the operator. This parameter is ignored when ingress_type is Route |
networking.k8s.io/v1 |
ingress_annotations (string) |
Additional annotation on the ingress managed by the operator. This parameter is ignored when ingress_type is Route |
"" |
ingress_controller (string) |
Special configuration for specific Ingress Controllers. This parameter is ignored when ingress_type is Route |
"" |
ingress_class_name (string) |
The name of ingress class to use instead of the cluster default. see IngressSpec. This parameter is ignored when ingress_type is Route |
"" |
gateway_parent_refs (array) |
Gateways the TLSRoute attaches to, each a Gateway API ParentReference. Required when ingress_type is TLSRoute |
[] |
gateway_annotations (string) |
Additional annotations on the TLSRoute | "" |
AscenderMeshIngressStatus¶
AscenderMeshIngressStatus describe the current state of the AscenderMeshIngress.
AscenderMeshIngressList¶
AscenderMeshIngressList is a collection of AscenderMeshIngress.
| Name | Description |
|---|---|
items (AscenderMeshIngress) |
items is the list of Ingress. |
apiVersion (string) |
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info |
kind (string) |
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info |
metadata (ListMeta) |
Standard object's metadata. More info |