github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/test-servers/README.md (about)

     1  ## TCP Server
     2  
     3  A Go server that accepts TCP requests and responds with the local address of the connection. 
     4  
     5  ### Description
     6  If the server is run inside a Docker container, the local address is the IP of the docker container. This is useful
     7  for distinguishing between instances of Docker containers. This server is used by the python tests in the
     8  [load balancing tests](../suite/test_transport_server_tcp_load_balance.py).
     9  
    10  ### Config
    11  The default port the server listens to is `3333`. The server takes a single argument, `port`, to allow the port to be 
    12  overridden.
    13  
    14  ## UDP Server
    15  
    16  A Go server that accepts UDP requests and responds with the local address of the connection.
    17  
    18  ### Description
    19  If the server is run inside a Docker container, the local address is the IP of the docker container. This is useful
    20  for distinguishing between instances of Docker containers. This server is used by the python tests in the
    21  [load balancing tests](../suite/test_transport_server_udp_load_balance.py).
    22  
    23  ### Config
    24  The default port the server listens to is `3334`. The server takes a single argument, `port`, to allow the port to be
    25  overridden.
    26  
    27  
    28  ## Making changes
    29  If you make changes to the TCP server:
    30  
    31   * Test the change:
    32     * Use the minikube registry ```$ eval $(minikube docker-env)```
    33     * Build the docker image ```docker build --build-arg type=tcp -t tcp-server .```
    34     * Update the [service yaml](../data/transport-server-tcp-load-balance/standard/service_deployment.yaml) to use the 
    35    local version ```-> imagePullPolicy: Never```
    36     * Test the changes
    37   * Include the change as part of the commit that requires the tcp-server change
    38     * Build the docker image with an increased version number ```docker build --build-arg type=tcp -t nginxkic/tcp-server:X.Y .```
    39     * Push the docker image to the public repo ```docker push nginxkic/tcp-server:X.Y```
    40     * Update the tag [service yaml](../data/transport-server-tcp-load-balance/standard/service_deployment.yaml) to match 
    41  the new tag
    42     * Commit the tag change as part of the commit that requires the tcp-server change
    43  
    44  For the UDP server:
    45  ```
    46  docker build --build-arg type=udp -t nginxkic/udp-server:X.Y .
    47  docker push nginxkic/udp-server:X.Y
    48  ```
    49