Skip to content

Commit

Permalink
helm: allow to configure bpf-nat-global-max using Helm
Browse files Browse the repository at this point in the history
Set the value to the current value of option.NATMapEntriesGlobalDefault

A successive PR will reduce it for #10056

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  • Loading branch information
tklauser authored and joestringer committed Mar 9, 2020
1 parent 350213e commit 20f6083
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Expand Up @@ -136,6 +136,10 @@ data:
bpf-ct-global-tcp-max: "{{ .Values.global.bpf.ctTcpMax }}"
bpf-ct-global-any-max: "{{ .Values.global.bpf.ctAnyMax }}"

# bpf-nat-global-max specified the maximum number of entries in the BPF NAT
# table.
bpf-nat-global-max: "{{ .Values.global.bpf.natMax }}"

# 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
# default value below will minimize memory usage in the default installation;
Expand Down
3 changes: 3 additions & 0 deletions install/kubernetes/cilium/values.yaml
Expand Up @@ -202,6 +202,9 @@ global:
# tracking table
ctAnyMax: 262144

# natMax is the maximum number of entries for the NAT table
natMax: 841429

# montiorAggregation is the level of aggregation for datapath trace events
monitorAggregation: medium

Expand Down
4 changes: 4 additions & 0 deletions install/kubernetes/quick-install.yaml
Expand Up @@ -75,6 +75,10 @@ data:
bpf-ct-global-tcp-max: "524288"
bpf-ct-global-any-max: "262144"

# bpf-nat-global-max specified the maximum number of entries in the BPF NAT
# table.
bpf-nat-global-max: "841429"

# 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
# default value below will minimize memory usage in the default installation;
Expand Down

0 comments on commit 20f6083

Please sign in to comment.