跳转至

L4模式发布

1.L4业务发布范例

场景描述

L4业务发布

示例中指定了class为Service_L4。最后下发的virtual server的类型为Performance(Layer 4)。 请视需要修改相关参数。

参考yaml

kind: ConfigMap
apiVersion: v1
metadata:
  name: vs-performace-l4
  namespace: default
  labels:
    f5type: virtual-server
    as3: "true"
data:
  template: |
    {
      "class": "AS3",
      "action": "deploy",
      "persist": true,
      "declaration": {
        "class": "ADC",
        "schemaVersion": "3.28.0",
        "id": "vs-performace-l4",
        "cistest15": {
          "class": "Tenant",
          "app-1": {
            "class": "Application",
            "template": "generic",
            "app_svc_vs": {
              "class": "Service_L4",
              "layer4": "any",
              "virtualAddresses": [
                "10.42.20.117"
              ],
              "snat": "self",
              "virtualPort": 80,
              "pool": "app_svc_pool"
            },
            "app_svc_pool": {
              "class": "Pool",
              "monitors": [
                "icmp"
              ],
              "loadBalancingMode": "least-connections-member",
              "members": [
              {
                "servicePort": 80,
                "serverAddresses": []
              }
              ]
            }
          }
        }
      }
    }

部署结果

list ltm virtual app-1/app_svc_vs
ltm virtual app-1/app_svc_vs {
    creation-time 2022-08-11:01:06:10
    description app-1
    destination 10.42.20.117:http
    last-modified-time 2022-08-11:01:06:10
    mask 255.255.255.255
    partition cistest15
    persist {
        /Common/source_addr {
            default yes
        }
    }
    pool app-1/app_svc_pool
    profiles {
        /Common/fastL4 { }
    }
    source 0.0.0.0/0
    source-address-translation {
        pool app-1/app_svc_vs_self
        type snat
    }
    translate-address enabled
    translate-port enabled
    vs-index 14
}

最后更新: August 11, 2022 16:13:40
创建日期: July 13, 2022 10:38:40