---
# Source: F5Demo/templates/configmap.yaml
kind: ConfigMap
apiVersion: v1
metadata:
  name: nginx-plus-as3-configmap
  labels:
    f5type: virtual-server
    as3: "true"
data:
  template: |
    {
      "class": "AS3",
      "declaration": {
        "class": "ADC",
        "schemaVersion": "3.1.0",
        "id": "nginx-plus",
        "label": "CIS AS3 Example",
        "remark": "Example of using CIS",
        "AS3": {
          "class": "Tenant",
          "MyApps": {
             "class": "Application",
             "template": "generic",
             "ingress": {
                "class": "Service_TCP",
                "virtualAddresses": ["10.1.10.10"],
               "remark":"ingress: f5demo.tcp.v1",
               
               "virtualPort": 80,
                "pool": "ingress_pool"
             },
             "ingress_pool": {
                "class": "Pool",
                "monitors": [ "tcp" ],
                "members": [{
                   "servicePort": 80,
                   "serverAddresses": []
                }]
             },
             "ingresstls": {
                "class": "Service_TCP",
                "virtualAddresses": ["10.1.10.10"],
               "remark":"ingresstls: f5demo.tcp.v1",
               
               "virtualPort": 443,
                "pool": "ingresstls_pool"
             },
             "ingresstls_pool": {
                "class": "Pool",
                "monitors": [ "tcp" ],
                "members": [{
                   "servicePort": 80,
                   "serverAddresses": []
                }]
             },
             "dashboard": {
                "class": "Service_TCP",
                "virtualAddresses": ["10.1.10.10"],
               "remark":"dashboard: f5demo.tcp.v1",
               
               "virtualPort": 8080,
                "pool": "dashboard_pool"
             },
             "dashboard_pool": {
                "class": "Pool",
                "monitors": [ "tcp" ],
                "members": [{
                   "servicePort": 80,
                   "serverAddresses": []
                }]
             }
       }
       }
    }
    }
