Skip to content

Commit

Permalink
enable-node-port and bpf-lb-sock in case kube-proxy is used
Browse files Browse the repository at this point in the history
  • Loading branch information
DockToFuture committed Apr 10, 2024
1 parent 3bc6093 commit d4fb6db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions charts/internal/cilium/charts/config/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ data:
{{- end }}

# Enable socket-based LB for E/W traffic
{{- if or (eq .Values.global.kubeProxyReplacement "partial") (eq .Values.global.kubeProxyReplacement "false") }}
bpf-lb-sock: "true"
{{- else}}
bpf-lb-sock: "{{ .Values.global.bpfSocketLB.enabled }}"
{{- end }}

{{- if .Values.global.bpfSocketLBHostnsOnly.enabled }}
# bpf-lb-sock-hostns-only skip socket LB for services when inside a pod namespace, in favor of service LB at the pod interface.
Expand Down Expand Up @@ -471,7 +475,7 @@ data:
{{- end }}
{{- if .Values.global.nodePort }}
{{- if or (eq .Values.global.kubeProxyReplacement "partial") (eq .Values.global.kubeProxyReplacement "false") }}
enable-node-port: {{ .Values.global.nodePort.enabled | quote }}
enable-node-port: "true"
{{- end }}
{{- if .Values.global.nodePort.range }}
node-port-range: {{ .Values.global.nodePort.range | quote }}
Expand All @@ -491,7 +495,6 @@ data:
enable-health-check-loadbalancer-ip: "false"
node-port-bind-protection: {{ .Values.global.nodePort.bindProtection | quote }}
enable-auto-protect-node-port-range: {{ .Values.global.nodePort.autoProtectPortRange | quote }}
bpf-lb-acceleration: "disabled"
enable-service-topology: {{ .Values.global.loadBalancer.serviceTopology | quote }}
enable-svc-source-range-check: {{ .Values.global.enableSvcSrcRangeCheck | quote }}
{{- end }}
Expand Down

0 comments on commit d4fb6db

Please sign in to comment.