F5SPKStaticRoute¶
The F5SPKStaticRoute Custom Resource (CR) configures the BIG-IP Next for Kubernetes Traffic Management Microkernal’s (TMM) static routing table. This overview discusses the F5SPKStaticRoute CR. For the full list of CRs, refer to the BIG-IP Next for Kubernetes CRs.
This document guides you through a basic static route CR deployment.
Parameters¶
The CR spec parameters used to configure the BIG-IP Next for Kubernetes TMM static routing table are:
| Parameter | Description |
|---|---|
destination |
The IPv4 Address routing destination. |
prefixlen |
The IPv4 address subnet mask. |
gateway |
The IPv4 address of the routing gateway. |
destination_v6 |
The IPv6 Address routing destination. |
prefixlen_v6 |
The IPv6 address subnet mask. |
gateway_v6 |
The IPv6 address of the routing gateway. |
type |
Type of route to set. The default is gateway. |
interface |
The interface that receives network traffic. |
Example CR:
apiVersion: "k8s.f5net.com/v1"
kind: F5SPKStaticRoute
metadata:
name: "staticroute-ipv4"
namespace: spk-ingress
spec:
destination: 10.10.1.100
prefixLen: 32
type: gateway
gateway: 10.146.134.1
Deployment¶
Use the following steps to deploy the example F5SPKStaticRoute CR, and verify the BIG-IP Next for Kubernetes TMM configuration.
Copy the Example CR into a YAML file:
apiVersion: "k8s.f5net.com/v1" kind: F5SPKStaticRoute metadata: name: "staticroute-ipv4" namespace: spk-ingress spec: destination: 10.10.1.100 prefixLen: 32 type: gateway gateway: 10.146.134.1
Install the F5SPKStaticRoute CR:
kubectl apply -f spk-static-route.yaml
Verify the status of the installed CR:
kubectl get f5-spk-staticroute -n spk-ingress
In this example, the CR has installed successfully. An installation failure may indicate an improper configuration. For example; no route to host.
NAME STATUS MESSAGE staticroute-ipv4 SUCCESS CR config sent to all grpc endpoints
To verify the static route configuration, log in to the BIG-IP Next for Kubernetes TMM container and show the routing table:
In this example, TMM is installed in the spk-ingress Project:
kubectl exec -it deploy/f5-tmm -n spk-ingress -- bash
ip routeIn this example, the gateway IP address is a remote host on TMM’s external VLAN:
default via 169.254.0.254 dev tmm 10.10.1.100 via 10.146.134.1 dev external 10.20.2.0/24 dev external proto kernel scope link src 10.146.134.2
Feedback¶
Provide feedback to improve this document by emailing spkdocs@f5.com.