The code is based off this repo and this talk
Change the LBPolicy
environment variable for the micoproxy
container in the deployment yaml.
env:
- name: LBPolicy
value: "MLeastConn"
Other options for LBPolicy
are Random
and LeastConn
.
sudo docker build -t ratnadeepb/blocproxy:latest .
sudo docker push ratnadeepb/blocproxy:latest
kubectl apply -f deployment.yaml
All incoming requests to the pod are routed to port 62081
and all outgoing requests are sent to port 62082
.
We have now adopted the practice of adding a +
for a commit that adds a feature add and a -
for any commit that removes functionality. However, as of now, this is on a best effort basis.