xiaods / k8e

K8E - Kubernetes Easy Engine
https://getk8e.com
Apache License 2.0
392 stars 25 forks source link

remove kube-proxy component #255

Closed xiaods closed 1 year ago

xiaods commented 2 years ago

use cilium as replacement tools for kube-proxy

xiaods commented 2 years ago

cilium v1.12.0 support kube-proxy replacement. https://docs.cilium.io/en/stable/gettingstarted/kubeproxy-free/

xiaods commented 2 years ago

without kube-proxy, we need specified setting API_SERVER_IP=

xiaods commented 2 years ago
API_SERVER_IP=<your_api_server_ip>
# Kubeadm default is 6443
API_SERVER_PORT=<your_api_server_port>
helm install cilium cilium/cilium --version 1.12.0 \
    --namespace kube-system \
    --set kubeProxyReplacement=strict \
    --set k8sServiceHost=${API_SERVER_IP} \
    --set k8sServicePort=${API_SERVER_PORT}
xiaods commented 2 years ago

for k8e cluster setup, the first apiserver is first machine IP. I need manually add the node IP to this --set k8sServiceHost. it's not very well. we need installer to compose the commands.

xiaods commented 2 years ago

it's time to remove kubeproxy in 1.25

xiaods commented 2 years ago

cilium 1.12.2 default remove kubeproxy

k8e codebase should be move first and remove kubeproxy code base.

xiaods commented 1 year ago

I found ebpf have some performance issue for kube-proxy disable mode. i will investing the issue.

xiaods commented 1 year ago

确切的说,有一些老的应用依赖iptables。所以并不能完全删除kube-proxy。

xiaods commented 1 year ago

osm-edge依赖。

xiaods commented 1 year ago

目前还不能删除kubeproxy能力

xiaods commented 1 year ago

osm-edge依赖。

osm-edge support ebpf also. we can remove kube-proxy totoly.