kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
41.26k stars 14.12k forks source link

transition to proxy-free setup (cilium) #734

Open rd-michel opened 1 year ago

rd-michel commented 1 year ago

ive followed the tutorial to create the cluster. afterwards i started to customize the setup:

how can i get rid of kube-proxy? my goal is to get rid of kube-proxy and run cilium in "KubeProxyReplacement" Mode

❯ kubectl exec -it -n kube-system cilium-btg7j -- cilium status --verbose
Defaulted container "cilium-agent" out of: cilium-agent, config (init), mount-cgroup (init), apply-sysctl-overwrites (init), mount-bpf-fs (init), clean-cilium-state (init), install-cni-binaries (init)
KVStore:                Ok   Disabled
Kubernetes:             Ok   1.26 (v1.26.3) [linux/amd64]
Kubernetes APIs:        ["cilium/v2::CiliumClusterwideNetworkPolicy", "cilium/v2::CiliumEndpoint", "cilium/v2::CiliumNetworkPolicy", "cilium/v2::CiliumNode", "core/v1::Namespace", "core/v1::Node", "core/v1::Pods", "core/v1::Service", "discovery/v1::EndpointSlice", "networking.k8s.io/v1::NetworkPolicy"]
KubeProxyReplacement:   Disabled
...
antonblr commented 1 year ago

@rd-michel - I think you can follow Cilium docs on that https://docs.cilium.io/en/v1.13/network/kubernetes/kubeproxy-free/#quick-start (there are both cases - initial and existing installations)