kind: ConfigMap
apiVersion: v1
metadata:
  name: example-udp-vs
  namespace: default
  labels: 
    f5type: virtual-server
data:
  # this example expects the vs to be backed by a udp mirror service
  schema: "f5schemadb://bigip-virtual-server_v0.1.7.json"
  data: |
    {
      "virtualServer": {
        "frontend": {
          "balance": "round-robin",
          "mode": "udp",
          "partition": "kubernetes",
          "virtualAddress": {
            "bindAddr": "1.2.3.4",
            "port": 8080
          }
        },
        "backend": {
          "healthMonitors": [
            {
              "interval": 25,
              "protocol": "udp",
              "send": "This example presumes a udp mirror server",
              "recv": "udp|regex",
              "timeout": 20
            }
          ],
          "serviceName": "example-service",
          "servicePort": 4445
        }
      }
    }
