Skip to content

Commit

Permalink
Emulate Cilium KubeProxyReplacement partial mode
Browse files Browse the repository at this point in the history
* Cilium KubeProxyReplacement mode used to support a partial
option, but in v1.14 it became true or false
* Emulate the old partial mode by disabling KubeProxyReplacement
but turning on the individual features
* The alternative of enabling KubeProxyReplacement has ramifications
because Cilium then needs to be configured with the apiserver server
address, which creates a dependency on the cloud provider's DNS,
clashes with kube-proxy, and removing kube-proxy creates complications
for how node health is assessed. Removing kube-proxy is further
complicated by the fact its still used by other supported CNIs which
creates a tricky support matrix

Docs: https://docs.cilium.io/en/latest/network/kubernetes/kubeproxy-free/#kube-proxy-hybrid-modes
  • Loading branch information
dghubble committed Aug 26, 2023
1 parent a4fc73d commit 251adf8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions resources/cilium/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ data:
# bpf-lb-map-max specifies the maximum number of entries in bpf lb service,
# backend and affinity maps.
bpf-lb-map-max: "65536"
bpf-lb-external-clusterip: "true"

# Pre-allocation of map entries allows per-packet latency to be reduced, at
# the expense of up-front memory allocation for the entries in the maps. The
Expand Down Expand Up @@ -128,17 +127,24 @@ data:
enable-bpf-masquerade: "true"

# kube-proxy
kube-proxy-replacement: "true"
kube-proxy-replacement: "false"
kube-proxy-replacement-healthz-bind-address: ""
enable-session-affinity: "true"

# ClusterIPs from host namespace
bpf-lb-sock: "true"
# ClusterIPs from external nodes
bpf-lb-external-clusterip: "true"

# NodePort
enable-node-port: "true"
node-port-bind-protection: "true"
enable-auto-protect-node-port-range: "true"
enable-health-check-nodeport: "false"

# ExternalIPs
enable-external-ips: "true"

# HostPort
enable-host-port: "true"

# IPAM
ipam: "cluster-pool"
Expand All @@ -150,7 +156,6 @@ data:
agent-health-port: "9876"
enable-health-checking: "true"
enable-endpoint-health-checking: "true"
enable-health-check-nodeport: "false"

# Identity
enable-well-known-identities: "false"
Expand Down

0 comments on commit 251adf8

Please sign in to comment.