Stackube proxy
Stackube proxy discover services and load balance for endpoints inside tenant's own namespace.
Blueprint information
- Status:
- Complete
- Approver:
- Pengfei Ni
- Priority:
- Essential
- Drafter:
- Pengfei Ni
- Direction:
- Approved
- Assignee:
- Pengfei Ni
- Definition:
- Approved
- Series goal:
- Accepted for pike
- Implementation:
-
Implemented
- Milestone target:
-
pike-3
- Started by
- Pengfei Ni
- Completed by
- Pengfei Ni
Related branches
Related bugs
Sprints
Whiteboard
kube-proxy should be replaced with stackube-proxy.
stackube-proxy only watches services/endpoints in its own namespace and do load balancing for them.
stackube-proxy is running on all compute node (for DVR) and network nodes (for latency mode), it will create iptables load balance rules in each network's router network namespace (if exist):
```
ip netns exec qrouter-xxxx iptables -t nat -I PREROUTING -d 10.109.71.152 -p tcp -m comment --comment "default/http: cluster IP" -m tcp --dport 80 -m statistic --mode random --probability 1.0 -j DNAT --to-destination 192.168.1.4:80
```
Gerrit topic: https:/
Addressed by: https:/
Add stackube proxy