F5 Container Integrations v1.1

Current Page

Application Services Proxy

Cloud Foundry

Kubernetes

Mesos Marathon

OpenShift

Support

Troubleshooting

Tutorials

Cloud Docs Home > F5 Container Integrations Index

Troubleshoot Your Kubernetes Deployment

Application Services Proxy

Verify the ASP handles traffic for a Service

  1. Add the x-served-by flag to the asp.config annotation in the Service definition:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    apiVersion: v1
    kind: Service
    metadata:
      annotations:
        # provide the desired ASP config parameters as a JSON blob
        asp.f5.com/config: |
          {
            "ip-protocol": "http",
            "load-balancing-mode": "round-robin",
            "flags" : {
              "x-forwarded-for": true,
              "x-served-by": true
            }
          }
      labels:
        # the name of the Service
        name: myService
      # the name of the Service
      name: myService
      # the namespace of the Service you want to proxy; the ASP pod will be
      # created in this namespace
      namespace: default
    spec:
      selector:
        # once again, the name of the Service
        app: myService
      type: NodePort
      ports:
        - name: "http"
          protocol: TCP
          port: 80
    
    
  2. Send a curl -v request to the Service and view the headers to verify the ASP handled the request. The X-Served-By line should match the IP address of an ASP pod.

    k8s-worker-0 core:~$ curl -v http://172.16.1.19:30597
    * Rebuilt URL to: http://172.16.1.19:30597/
    *   Trying 172.16.1.19...
    * TCP_NODELAY set
    * Connected to 172.16.1.19 (172.16.1.19) port 30597 (#0)
    > GET / HTTP/1.1
    > Host: 172.16.1.19:30597
    > User-Agent: curl/7.50.2
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    < Date: Fri, 17 Feb 2017 23:14:32 GMT
    < Connection: keep-alive
    < Transfer-Encoding: chunked
    < X-Served-By: 10.2.0.123
    <
    * Curl_http_done: called premature == 0
    * Connection #0 to host 172.16.1.19 left intact
    Hello Kubernetes!
    

F5-proxy for Kubernetes

Coming soon!

BIG-IP Controller for Kubernetes

Coming soon!