GatewaySettings¶
Overview¶
Persona¶
Cluster operator
Tenant network administrator
Function¶
Declares the gateway and egress gateway extension settings for a CNE instance, including source NAT pools and ingress and egress configuration. IPAM comes from the referenced Infra resource. Each ingress and egress configuration specifies its own network reference.
This resource configures tenant-specific traffic settings for Gateway and EgressGateway resources. It defines source NAT (SNAT) pools and specifies how the system handles ingress and egress traffic. This resource references infrastructure elements, such as IPAM pools and networks, defined in a separate Infra resource, which enables modular and reusable network design. Must be deployed in the same namespace as the Gateway or EgressGateway resources that references it.
Names¶
Singular name |
Plural name |
Short name |
|---|---|---|
gatewaysettings |
gatewaysettings |
gws |
API group and version¶
gateway.k8s.f5.com/v1alpha1
Scope¶
Namespace
Specification¶
spec¶
Specify at least one of ingressConfig or egressConfigs.
Field |
Required |
Default |
Description |
|---|---|---|---|
|
No |
— |
Source NAT pool configuration for ingress and egress. |
|
No |
— |
Configuration for handling incoming traffic. |
|
No |
— |
Configuration for handling outgoing traffic. |
spec.sourceNATPools[]¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of the source NAT pool. Must be 1 to 255 characters. |
|
Yes |
— |
References to IPAM configurations in the |
|
No |
— |
Reference to a VRF for this source NAT pool. When you don’t set this, the system uses the default VRF. |
|
No |
|
Turns on source NAT address sharing across multiple TMMs. Accepted values: |
spec.sourceNATPools[].ipamRefs[]¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of an |
spec.sourceNATPools[].vrfRef¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of the VRF. Must be 1 to 255 characters. |
spec.ingressConfig¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
No |
— |
Default listener network configuration for incoming traffic. |
spec.ingressConfig.defaultListenerNetwork¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
References to IPAM configurations in the |
|
No |
— |
References to |
|
No |
— |
Reference to a VRF for this default listener network. When you don’t set this, the system uses the default VRF. |
|
No |
— |
Source NAT configuration for the listener network. |
spec.ingressConfig.defaultListenerNetwork.ipamRefs[]¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of an |
spec.ingressConfig.defaultListenerNetwork.networkRefs[]¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of the network configuration entry in the referenced |
spec.ingressConfig.defaultListenerNetwork.vrfRef¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of the VRF. Must be 1 to 255 characters. |
spec.ingressConfig.defaultListenerNetwork.sourceNATConfig¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
|
Source NAT mode. |
|
No |
— |
Reference to a source NAT pool entry defined in this resource. Required when |
spec.ingressConfig.defaultListenerNetwork.sourceNATConfig.sourceNATPoolRef¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of a source NAT pool entry defined in this resource. Must be 1 to 255 characters. |
spec.egressConfigs[]¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of the egress configuration. Must be 1 to 255 characters. The |
|
Yes |
— |
Source NAT configuration for the egress path. |
|
No |
— |
Reference to a VRF for this egress configuration. |
|
No |
— |
Reference to one |
|
No |
|
Preferred acceleration mode for the Packet Velocity ASIC (PVA). Accepted values: |
spec.egressConfigs[].vrfRef¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of the VRF. Must be 1 to 255 characters. |
spec.egressConfigs[].networkRef¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of the network configuration entry in the referenced |
spec.egressConfigs[].sourceNATConfig¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
|
Source NAT mode. |
|
No |
— |
Reference to a source NAT pool entry defined in this resource. Required when |
spec.egressConfigs[].sourceNATConfig.sourceNATPoolRef¶
Field |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Name of a source NAT pool entry defined in this resource. Must be 1 to 255 characters. |
Source NAT modes¶
The sourceNATConfig.type field accepts these modes.
Mode |
Behavior |
|---|---|
|
Default. Maps traffic automatically to available source NAT addresses. |
|
Turns off source NAT. |
|
Uses a specific source NAT pool referenced by |
|
Uses the ingress path source address as the source NAT address. Available for egress only. |
Configuration patterns¶
Pattern |
What to configure |
|---|---|
Minimal ingress |
Set only |
Routed ingress |
Add |
Deterministic ingress source NAT |
Set |
Simple egress |
Set |
Egress with a specific path |
Add |
Combined ingress and egress |
Configure both |
Egress-only deployment |
Configure only |
Ingress-only deployment |
Configure only |
Example manifest¶
The following manifest defines a source NAT pool, an ingress listener network with automatic source NAT, and an egress configuration that uses the source NAT pool.
apiVersion: gateway.k8s.f5.com/v1alpha1
kind: GatewaySettings
metadata:
name: my-gateway-settings
namespace: f5-gateways
spec:
sourceNATPools:
- name: egress-snat
ipamRefs:
- name: server-pool
shared: false
ingressConfig:
defaultListenerNetwork:
ipamRefs:
- name: listener-pool
sourceNATConfig:
type: Automap
egressConfigs:
- name: default-egress
networkRef:
name: tmm-server
sourceNATConfig:
type: Pool
sourceNATPoolRef:
name: egress-snat