feat(cni): enable eBPF

!17
This commit is contained in:
2024-01-31 06:07:47 +09:30
parent b2f9e5d3ca
commit 26c0ab1236
4 changed files with 17 additions and 1 deletions

View File

@ -13,6 +13,7 @@
- FelixConfiguration-manifest-Calico_Cluster.yaml - FelixConfiguration-manifest-Calico_Cluster.yaml
- IPPool-manifest-Calico_Cluster.yaml.j2 - IPPool-manifest-Calico_Cluster.yaml.j2
- APIServer-manifest-Calico_Cluster.yaml - APIServer-manifest-Calico_Cluster.yaml
- ConfigMap-manifest-Calico_Service_Endpoint.yaml.j2
block: block:

View File

@ -0,0 +1,11 @@
---
kind: ConfigMap
apiVersion: v1
metadata:
name: kubernetes-services-endpoint
namespace: tigera-operator
data:
KUBERNETES_SERVICE_HOST: "
{%- set octet = kubernetes_config.cluster.networking.ServiceSubnet | split('.') -%}
{{- octet[0] }}.{{- octet[1] }}.{{- octet[2] }}.1"
KUBERNETES_SERVICE_PORT: '443'

View File

@ -5,6 +5,9 @@ kind: FelixConfiguration
metadata: metadata:
name: default name: default
spec: spec:
bpfConnectTimeLoadBalancing: TCP
bpfExternalServiceMode: DSR
bpfHostNetworkedNATWithoutCTLB: Enabled
bpfLogLevel: "" bpfLogLevel: ""
floatingIPs: Disabled floatingIPs: Disabled
healthPort: 9099 healthPort: 9099

View File

@ -16,7 +16,8 @@ spec:
encapsulation: VXLAN encapsulation: VXLAN
natOutgoing: Enabled natOutgoing: Enabled
nodeSelector: all() nodeSelector: all()
linuxDataplane: Iptables # linuxDataplane: Iptables
linuxDataplane: BPF
mtu: 0 mtu: 0
multiInterfaceMode: None multiInterfaceMode: None
nodeAddressAutodetectionV4: nodeAddressAutodetectionV4: