Fix Nginx lb in k8s/istio 59/54759/3
authorEddie Arrage <eddie.arrage@huawei.com>
Tue, 3 Apr 2018 02:50:36 +0000 (02:50 +0000)
committerEddie Arrage <eddie.arrage@huawei.com>
Tue, 3 Apr 2018 23:31:58 +0000 (23:31 +0000)
commit5e213108dfade163a85cff9b9156de9bd2c18887
tree1a7d3eda89886385979161495ca623e9c6f5fc88
parent67b7fb49e6ea6ac9c2547af263355e5f1aeade42
Fix Nginx lb in k8s/istio

- Provide workaround to make nginx lb work properly
- nginx_client sample can modify default load balancing
from three to two servers at runtime
- Ensure port 9180 is used for default deploy for lb and
servers
- Modify render_yaml to specify deploy_name so that
clover-server1, 2, 3 can be used for default lb config
- Ensure proxy template is aligned to lb to allow the
source IP from originating host to be propagated to final
destination

- Fix default nginx proxy server_name to 'proxy-access-control'
and change default proxy destination to 'http-lb'
- Split lb service_type to 'lbv1' and 'lbv2' to provide an example
of how to modify the run-time configuration of the load balancer
after deployment - modify http-lb-v2 to use clover-server4/5 instead
of the defualt clover-server1/2/3 - modify http-lb-v1 to use
clover-server1/2 instead of 1/2/3
- Aligned pod IP retrival method with nginx_client.py

Change-Id: I73fa60a69c93ae1e82a477ef6283c00f67a21360
Signed-off-by: Eddie Arrage <eddie.arrage@huawei.com>
samples/services/nginx/docker/grpc/nginx_client.py
samples/services/nginx/docker/grpc/nginx_grpc_server.py
samples/services/nginx/docker/grpc/templates/lb.template
samples/services/nginx/docker/grpc/templates/proxy.template
samples/services/nginx/yaml/render_yaml.py