F5SPKStaticRoute

Overview

The F5SPKStaticRoute Custom Resource (CR) configures the Service Proxy (SPK) Traffic Management Microkernal’s (TMM) static routing table.

This document guides you through a basic static route CR deployment.

Parameters

The CR spec parameters used to configure the Service Proxy 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.

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

Requirements

Ensure you have:

Deployment

Use the following steps to deploy the example F5SPKStaticRoute CR, and verify the Service Proxy TMM configuration.

  1. 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
    
  2. Install the F5SPKStaticRoute CR:

    oc apply -f spk-static-route.yaml
    
  3. To verify the static route, log in to the Service Proxy TMM container and show the routing table:

    In this example, TMM is installed in the spk-ingress Project:

    oc exec -it deploy/f5-tmm -n spk-ingress -- bash
    
    ip route
    

    In 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.