Back to Calico

Config Params

felix/docs/config-params.md

3.33.0-0.dev141.8 KB
Original Source

This file was generated by calico-felix-docgen. Do not edit directly.

Sections

<a id="datastore-connection">Datastore connection

DatastoreType (config file / env var only)

Controls which datastore driver Felix will use. Typically, this is detected from the environment and it does not need to be set manually. (For example, if KUBECONFIG is set, the kubernetes datastore driver will be used by default).

Detail
Environment variableFELIX_DatastoreType
Encoding (env var/config file)One of: <code>etcdv3</code>, <code>kubernetes</code> (case insensitive)
Default value (above encoding)etcdv3
NotesRequired, config file / env var only, Felix will exit if the value is invalid.

EtcdAddr (config file / env var only)

When using the etcdv3 datastore driver, the etcd server and port to connect to. If EtcdEndpoints is also specified, it takes precedence.

Detail
Environment variableFELIX_EtcdAddr
Encoding (env var/config file)String matching regex <code>^[^:/]+:\d+$</code>
Default value (above encoding)127.0.0.1:2379
NotesConfig file / env var only.

EtcdCaFile (config file / env var only)

When using the etcdv3 datastore driver, path to TLS CA file to use when connecting to etcd. If the CA file is specified, the other TLS parameters are mandatory.

Detail
Environment variableFELIX_EtcdCaFile
Encoding (env var/config file)Path to file, which must exist
Default value (above encoding)none
NotesConfig file / env var only.

EtcdCertFile (config file / env var only)

When using the etcdv3 datastore driver, path to TLS certificate file to use when connecting to etcd. If the certificate file is specified, the other TLS parameters are mandatory.

Detail
Environment variableFELIX_EtcdCertFile
Encoding (env var/config file)Path to file, which must exist
Default value (above encoding)none
NotesConfig file / env var only.

EtcdEndpoints (config file / env var only)

When using the etcdv3 datastore driver, comma-delimited list of etcd endpoints to connect to, replaces EtcdAddr and EtcdScheme.

Detail
Environment variableFELIX_EtcdEndpoints
Encoding (env var/config file)List of HTTP endpoints: comma-delimited list of <code>http(s)://hostname:port</code>
Default value (above encoding)none
NotesConfig file / env var only.

EtcdKeyFile (config file / env var only)

When using the etcdv3 datastore driver, path to TLS private key file to use when connecting to etcd. If the key file is specified, the other TLS parameters are mandatory.

Detail
Environment variableFELIX_EtcdKeyFile
Encoding (env var/config file)Path to file, which must exist
Default value (above encoding)none
NotesConfig file / env var only.

EtcdScheme (config file / env var only)

EtcdAddr: when using the etcdv3 datastore driver, the URL scheme to use. If EtcdEndpoints is also specified, it takes precedence.

Detail
Environment variableFELIX_EtcdScheme
Encoding (env var/config file)One of: <code>http</code>, <code>https</code> (case insensitive)
Default value (above encoding)http
NotesConfig file / env var only.

FelixHostname (config file / env var only)

The name of this node, used to identify resources in the datastore that belong to this node. Auto-detected from the node's hostname if not provided.

Detail
Environment variableFELIX_FelixHostname
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9_.-]+$</code>
Default value (above encoding)none
NotesRequired, config file / env var only.

TyphaAddr (config file / env var only)

If set, tells Felix to connect to Typha at the given address and port. Overrides TyphaK8sServiceName.

Detail
Environment variableFELIX_TyphaAddr
Encoding (env var/config file)String matching regex <code>^[^:/]+:\d+$</code>
Default value (above encoding)none
NotesConfig file / env var only.

TyphaCAFile (config file / env var only)

Path to the TLS CA file to use when communicating with Typha. If this parameter is specified, the other TLS parameters must also be specified.

Detail
Environment variableFELIX_TyphaCAFile
Encoding (env var/config file)Path to file, which must exist
Default value (above encoding)none
NotesConfig file / env var only.

TyphaCN (config file / env var only)

Common name to use when authenticating to Typha over TLS. If any TLS parameters are specified then one of TyphaCN and TyphaURISAN must be set.

Detail
Environment variableFELIX_TyphaCN
Encoding (env var/config file)String
Default value (above encoding)none
NotesConfig file / env var only.

TyphaCertFile (config file / env var only)

Path to the TLS certificate to use when communicating with Typha. If this parameter is specified, the other TLS parameters must also be specified.

Detail
Environment variableFELIX_TyphaCertFile
Encoding (env var/config file)Path to file, which must exist
Default value (above encoding)none
NotesConfig file / env var only.

TyphaK8sNamespace (config file / env var only)

Namespace to look in when looking for Typha's service (see TyphaK8sServiceName).

Detail
Environment variableFELIX_TyphaK8sNamespace
Encoding (env var/config file)String
Default value (above encoding)kube-system
NotesRequired, config file / env var only.

TyphaK8sServiceName (config file / env var only)

If set, tells Felix to connect to Typha by looking up the Endpoints of the given Kubernetes Service in namespace specified by TyphaK8sNamespace.

Detail
Environment variableFELIX_TyphaK8sServiceName
Encoding (env var/config file)String
Default value (above encoding)none
NotesConfig file / env var only.

TyphaKeyFile (config file / env var only)

Path to the TLS private key to use when communicating with Typha. If this parameter is specified, the other TLS parameters must also be specified.

Detail
Environment variableFELIX_TyphaKeyFile
Encoding (env var/config file)Path to file, which must exist
Default value (above encoding)none
NotesConfig file / env var only.

TyphaReadTimeout (config file / env var only)

Read timeout when reading from the Typha connection. If typha sends no data for this long, Felix will exit and restart. (Note that Typha sends regular pings so traffic is always expected.)

Detail
Environment variableFELIX_TyphaReadTimeout
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)30 (30s)
NotesConfig file / env var only.

TyphaURISAN (config file / env var only)

URI SAN to use when authenticating to Typha over TLS. If any TLS parameters are specified then one of TyphaCN and TyphaURISAN must be set.

Detail
Environment variableFELIX_TyphaURISAN
Encoding (env var/config file)String
Default value (above encoding)none
NotesConfig file / env var only.

TyphaWriteTimeout (config file / env var only)

Write timeout when writing data to Typha.

Detail
Environment variableFELIX_TyphaWriteTimeout
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)10 (10s)
NotesConfig file / env var only.

<a id="process-feature-detectionoverrides">Process: Feature detection/overrides

FeatureDetectOverride (config file) / featureDetectOverride (YAML)

Used to override feature detection based on auto-detected platform capabilities. Values are specified in a comma separated list with no spaces, example; "SNATFullyRandom=true,MASQFullyRandom=false,RestoreSupportsLock=". A value of "true" or "false" will force enable/disable feature, empty or omitted values fall back to auto-detection.

Detail
Environment variableFELIX_FeatureDetectOverride
Encoding (env var/config file)Comma-delimited list of key=value pairs
Default value (above encoding)none
FelixConfiguration fieldfeatureDetectOverride (YAML) FeatureDetectOverride (Go API)
FelixConfiguration schemaString matching the regular expression <code>^([a-zA-Z0-9-]+=(true|false|),)*([a-zA-Z0-9-]+=(true|false|))?$</code>.
Default value (YAML)none

FeatureGates (config file) / featureGates (YAML)

Used to enable or disable tech-preview Calico features. Values are specified in a comma separated list with no spaces, example; "BPFConnectTimeLoadBalancingWorkaround=enabled,XyZ=false". This is used to enable features that are not fully production ready.

Detail
Environment variableFELIX_FeatureGates
Encoding (env var/config file)Comma-delimited list of key=value pairs
Default value (above encoding)none
FelixConfiguration fieldfeatureGates (YAML) FeatureGates (Go API)
FelixConfiguration schemaString matching the regular expression <code>^([a-zA-Z0-9-]+=([^=]+),)*([a-zA-Z0-9-]+=([^=]+))?$</code>.
Default value (YAML)none

<a id="process-go-runtime">Process: Go runtime

GoGCThreshold (config file) / goGCThreshold (YAML)

Sets the Go runtime's garbage collection threshold. I.e. the percentage that the heap is allowed to grow before garbage collection is triggered. In general, doubling the value halves the CPU time spent doing GC, but it also doubles peak GC memory overhead. A special value of -1 can be used to disable GC entirely; this should only be used in conjunction with the GoMemoryLimitMB setting.

This setting is overridden by the GOGC environment variable.

Detail
Environment variableFELIX_GoGCThreshold
Encoding (env var/config file)Integer: [-1,2<sup>63</sup>-1]
Default value (above encoding)40
FelixConfiguration fieldgoGCThreshold (YAML) GoGCThreshold (Go API)
FelixConfiguration schemaInteger: [-1,2<sup>63</sup>-1]
Default value (YAML)40

GoMaxProcs (config file) / goMaxProcs (YAML)

Sets the maximum number of CPUs that the Go runtime will use concurrently. A value of -1 means "use the system default"; typically the number of real CPUs on the system.

this setting is overridden by the GOMAXPROCS environment variable.

Detail
Environment variableFELIX_GoMaxProcs
Encoding (env var/config file)Integer: [-1,2<sup>63</sup>-1]
Default value (above encoding)-1
FelixConfiguration fieldgoMaxProcs (YAML) GoMaxProcs (Go API)
FelixConfiguration schemaInteger: [-1,2<sup>63</sup>-1]
Default value (YAML)-1

GoMemoryLimitMB (config file) / goMemoryLimitMB (YAML)

Sets a (soft) memory limit for the Go runtime in MB. The Go runtime will try to keep its memory usage under the limit by triggering GC as needed. To avoid thrashing, it will exceed the limit if GC starts to take more than 50% of the process's CPU time. A value of -1 disables the memory limit.

Note that the memory limit, if used, must be considerably less than any hard resource limit set at the container or pod level. This is because felix is not the only process that must run in the container or pod.

This setting is overridden by the GOMEMLIMIT environment variable.

Detail
Environment variableFELIX_GoMemoryLimitMB
Encoding (env var/config file)Integer: [-1,2<sup>63</sup>-1]
Default value (above encoding)-1
FelixConfiguration fieldgoMemoryLimitMB (YAML) GoMemoryLimitMB (Go API)
FelixConfiguration schemaInteger: [-1,2<sup>63</sup>-1]
Default value (YAML)-1

<a id="process-health-port-and-timeouts">Process: Health port and timeouts

HealthEnabled (config file) / healthEnabled (YAML)

If set to true, enables Felix's health port, which provides readiness and liveness endpoints.

Detail
Environment variableFELIX_HealthEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldhealthEnabled (YAML) HealthEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

HealthHost (config file) / healthHost (YAML)

The host that the health server should bind to.

Detail
Environment variableFELIX_HealthHost
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9:._+-]{1,64}$</code>
Default value (above encoding)localhost
FelixConfiguration fieldhealthHost (YAML) HealthHost (Go API)
FelixConfiguration schemaString.
Default value (YAML)localhost

HealthPort (config file) / healthPort (YAML)

The TCP port that the health server should bind to.

Detail
Environment variableFELIX_HealthPort
Encoding (env var/config file)Integer: [0,65535]
Default value (above encoding)9099
FelixConfiguration fieldhealthPort (YAML) HealthPort (Go API)
FelixConfiguration schemaInteger: [0,65535]
Default value (YAML)9099

HealthTimeoutOverrides (config file) / healthTimeoutOverrides (YAML)

Allows the internal watchdog timeouts of individual subcomponents to be overridden. This is useful for working around "false positive" liveness timeouts that can occur in particularly stressful workloads or if CPU is constrained. For a list of active subcomponents, see Felix's logs.

Detail
Environment variableFELIX_HealthTimeoutOverrides
Encoding (env var/config file)Comma-delimited list of <code><key>=<duration></code> pairs, where durations use Go's standard format (e.g. 1s, 1m, 1h3m2s)
Default value (above encoding)none
FelixConfiguration fieldhealthTimeoutOverrides (YAML) HealthTimeoutOverrides (Go API)
FelixConfiguration schemaList of health timeout overrides: <code>[{name: "<name>", timeout: "<duration>"}, ...]</code> where <code><duration></code> is in the Go duration format, for example <code>1m30s</code>.
Default value (YAML)none

<a id="process-logging">Process: Logging

LogActionRateLimit (config file) / logActionRateLimit (YAML)

Sets the rate of hitting a Log action. The value must be in the format "N/unit", where N is a number and unit is one of: second, minute, hour, or day. For example: "10/second" or "100/hour".

Detail
Environment variableFELIX_LogActionRateLimit
Encoding (env var/config file)String matching regex <code>^([1-9]\d{0,3}/(?:second|minute|hour|day))?$</code>
Default value (above encoding)none
FelixConfiguration fieldlogActionRateLimit (YAML) LogActionRateLimit (Go API)
FelixConfiguration schemaString matching the regular expression <code>^[1-9]\d{0,3}/(?:second|minute|hour|day)$</code>.
Default value (YAML)none

LogActionRateLimitBurst (config file) / logActionRateLimitBurst (YAML)

Sets the rate limit burst of hitting a Log action when LogActionRateLimit is enabled.

Detail
Environment variableFELIX_LogActionRateLimitBurst
Encoding (env var/config file)Integer: [0,2<sup>63</sup>-1], [9999,2<sup>63</sup>-1]
Default value (above encoding)5
FelixConfiguration fieldlogActionRateLimitBurst (YAML) LogActionRateLimitBurst (Go API)
FelixConfiguration schemaInteger: [0,2<sup>63</sup>-1], [9999,2<sup>63</sup>-1]
Default value (YAML)5

LogDebugFilenameRegex (config file) / logDebugFilenameRegex (YAML)

Controls which source code files have their Debug log output included in the logs. Only logs from files with names that match the given regular expression are included. The filter only applies to Debug level logs.

Detail
Environment variableFELIX_LogDebugFilenameRegex
Encoding (env var/config file)Regular expression
Default value (above encoding)none
FelixConfiguration fieldlogDebugFilenameRegex (YAML) LogDebugFilenameRegex (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

LogFilePath (config file) / logFilePath (YAML)

The full path to the Felix log. Set to none to disable file logging.

Detail
Environment variableFELIX_LogFilePath
Encoding (env var/config file)Path to file
Default value (above encoding)/var/log/calico/felix.log
FelixConfiguration fieldlogFilePath (YAML) LogFilePath (Go API)
FelixConfiguration schemaString.
Default value (YAML)/var/log/calico/felix.log
NotesFelix will exit if the value is invalid.

LogPrefix (config file) / logPrefix (YAML)

The log prefix that Felix uses when rendering LOG rules. It is possible to use the following specifiers to include extra information in the log prefix.

  • %t: Tier name.
  • %k: Kind (short names).
  • %n: Policy or profile name.
  • %p: Policy or profile name (namespace/name for namespaced kinds or just name for non namespaced kinds). Calico includes ": " characters at the end of the generated log prefix. Note that iptables shows up to 29 characters for the log prefix and nftables up to 127 characters. Extra characters are truncated.
Detail
Environment variableFELIX_LogPrefix
Encoding (env var/config file)String
Default value (above encoding)calico-packet
FelixConfiguration fieldlogPrefix (YAML) LogPrefix (Go API)
FelixConfiguration schemaString matching the regular expression <code>^([a-zA-Z0-9%: /_-])*$</code>.
Default value (YAML)calico-packet

LogSeverityFile (config file) / logSeverityFile (YAML)

The log severity above which logs are sent to the log file.

Detail
Environment variableFELIX_LogSeverityFile
Encoding (env var/config file)One of: <code>DEBUG</code>, <code>ERROR</code>, <code>FATAL</code>, <code>INFO</code>, <code>TRACE</code>, <code>WARNING</code> (case insensitive)
Default value (above encoding)INFO
FelixConfiguration fieldlogSeverityFile (YAML) LogSeverityFile (Go API)
FelixConfiguration schemaOne of: <code>Debug</code>, <code>Error</code>, <code>Fatal</code>, <code>Info</code>, <code>Trace</code>, <code>Warning</code>.
Default value (YAML)Info

LogSeverityScreen (config file) / logSeverityScreen (YAML)

The log severity above which logs are sent to the stdout.

Detail
Environment variableFELIX_LogSeverityScreen
Encoding (env var/config file)One of: <code>DEBUG</code>, <code>ERROR</code>, <code>FATAL</code>, <code>INFO</code>, <code>TRACE</code>, <code>WARNING</code> (case insensitive)
Default value (above encoding)INFO
FelixConfiguration fieldlogSeverityScreen (YAML) LogSeverityScreen (Go API)
FelixConfiguration schemaOne of: <code>Debug</code>, <code>Error</code>, <code>Fatal</code>, <code>Info</code>, <code>Trace</code>, <code>Warning</code>.
Default value (YAML)Info

LogSeveritySys (config file) / logSeveritySys (YAML)

The log severity above which logs are sent to the syslog. Set to None for no logging to syslog.

Detail
Environment variableFELIX_LogSeveritySys
Encoding (env var/config file)One of: <code>DEBUG</code>, <code>ERROR</code>, <code>FATAL</code>, <code>INFO</code>, <code>TRACE</code>, <code>WARNING</code> (case insensitive)
Default value (above encoding)INFO
FelixConfiguration fieldlogSeveritySys (YAML) LogSeveritySys (Go API)
FelixConfiguration schemaOne of: <code>Debug</code>, <code>Error</code>, <code>Fatal</code>, <code>Info</code>, <code>Trace</code>, <code>Warning</code>.
Default value (YAML)Info

<a id="process-prometheus-metrics">Process: Prometheus metrics

PrometheusGoMetricsEnabled (config file) / prometheusGoMetricsEnabled (YAML)

Disables Go runtime metrics collection, which the Prometheus client does by default, when set to false. This reduces the number of metrics reported, reducing Prometheus load.

Detail
Environment variableFELIX_PrometheusGoMetricsEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldprometheusGoMetricsEnabled (YAML) PrometheusGoMetricsEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

PrometheusMetricsCAFile (config file) / prometheusMetricsCAFile (YAML)

Defines the absolute path to the TLS CA certificate file used for securing the /metrics endpoint. This certificate must be valid and accessible by the calico-node process.

Detail
Environment variableFELIX_PrometheusMetricsCAFile
Encoding (env var/config file)String
Default value (above encoding)none
FelixConfiguration fieldprometheusMetricsCAFile (YAML) PrometheusMetricsCAFile (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

PrometheusMetricsCertFile (config file) / prometheusMetricsCertFile (YAML)

Defines the absolute path to the TLS certificate file used for securing the /metrics endpoint. This certificate must be valid and accessible by the calico-node process.

Detail
Environment variableFELIX_PrometheusMetricsCertFile
Encoding (env var/config file)String
Default value (above encoding)none
FelixConfiguration fieldprometheusMetricsCertFile (YAML) PrometheusMetricsCertFile (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

PrometheusMetricsClientAuth (config file) / prometheusMetricsClientAuth (YAML)

Specifies the client authentication type for the /metrics endpoint. This determines how the server validates client certificates. Default is "RequireAndVerifyClientCert".

Detail
Environment variableFELIX_PrometheusMetricsClientAuth
Encoding (env var/config file)One of: <code>NoClientCert</code>, <code>RequireAndVerifyClientCert</code>, <code>RequireAnyClientCert</code>, <code>VerifyClientCertIfGiven</code> (case insensitive)
Default value (above encoding)RequireAndVerifyClientCert
FelixConfiguration fieldprometheusMetricsClientAuth (YAML) PrometheusMetricsClientAuth (Go API)
FelixConfiguration schemastring
Default value (YAML)RequireAndVerifyClientCert

PrometheusMetricsEnabled (config file) / prometheusMetricsEnabled (YAML)

Enables the Prometheus metrics server in Felix if set to true.

Detail
Environment variableFELIX_PrometheusMetricsEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldprometheusMetricsEnabled (YAML) PrometheusMetricsEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

PrometheusMetricsHost (config file) / prometheusMetricsHost (YAML)

The host that the Prometheus metrics server should bind to.

Detail
Environment variableFELIX_PrometheusMetricsHost
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9:._+-]{1,64}$</code>
Default value (above encoding)none
FelixConfiguration fieldprometheusMetricsHost (YAML) PrometheusMetricsHost (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

PrometheusMetricsKeyFile (config file) / prometheusMetricsKeyFile (YAML)

Defines the absolute path to the private key file corresponding to the TLS certificate used for securing the /metrics endpoint. The private key must be valid and accessible by the calico-node process.

Detail
Environment variableFELIX_PrometheusMetricsKeyFile
Encoding (env var/config file)String
Default value (above encoding)none
FelixConfiguration fieldprometheusMetricsKeyFile (YAML) PrometheusMetricsKeyFile (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

PrometheusMetricsPort (config file) / prometheusMetricsPort (YAML)

The TCP port that the Prometheus metrics server should bind to.

Detail
Environment variableFELIX_PrometheusMetricsPort
Encoding (env var/config file)Integer: [0,65535]
Default value (above encoding)9091
FelixConfiguration fieldprometheusMetricsPort (YAML) PrometheusMetricsPort (Go API)
FelixConfiguration schemaInteger: [0,65535]
Default value (YAML)9091

PrometheusProcessMetricsEnabled (config file) / prometheusProcessMetricsEnabled (YAML)

Disables process metrics collection, which the Prometheus client does by default, when set to false. This reduces the number of metrics reported, reducing Prometheus load.

Detail
Environment variableFELIX_PrometheusProcessMetricsEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldprometheusProcessMetricsEnabled (YAML) PrometheusProcessMetricsEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

PrometheusWireGuardMetricsEnabled (config file) / prometheusWireGuardMetricsEnabled (YAML)

Disables wireguard metrics collection, which the Prometheus client does by default, when set to false. This reduces the number of metrics reported, reducing Prometheus load.

Detail
Environment variableFELIX_PrometheusWireGuardMetricsEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldprometheusWireGuardMetricsEnabled (YAML) PrometheusWireGuardMetricsEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

<a id="dataplane-common">Dataplane: Common

AllowIPIPPacketsFromWorkloads (config file) / allowIPIPPacketsFromWorkloads (YAML)

Controls whether Felix will add a rule to drop IPIP encapsulated traffic from workloads.

Detail
Environment variableFELIX_AllowIPIPPacketsFromWorkloads
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldallowIPIPPacketsFromWorkloads (YAML) AllowIPIPPacketsFromWorkloads (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

AllowVXLANPacketsFromWorkloads (config file) / allowVXLANPacketsFromWorkloads (YAML)

Controls whether Felix will add a rule to drop VXLAN encapsulated traffic from workloads.

Detail
Environment variableFELIX_AllowVXLANPacketsFromWorkloads
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldallowVXLANPacketsFromWorkloads (YAML) AllowVXLANPacketsFromWorkloads (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

CgroupV2Path (config file) / cgroupV2Path (YAML)

Overrides the default location where to find the cgroup hierarchy.

Detail
Environment variableFELIX_CgroupV2Path
Encoding (env var/config file)String
Default value (above encoding)none
FelixConfiguration fieldcgroupV2Path (YAML) CgroupV2Path (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

ChainInsertMode (config file) / chainInsertMode (YAML)

Controls whether Felix hooks the kernel's top-level iptables chains by inserting a rule at the top of the chain or by appending a rule at the bottom. insert is the safe default since it prevents Calico's rules from being bypassed. If you switch to append mode, be sure that the other rules in the chains signal acceptance by falling through to the Calico rules, otherwise the Calico policy will be bypassed.

Detail
Environment variableFELIX_ChainInsertMode
Encoding (env var/config file)One of: <code>append</code>, <code>insert</code> (case insensitive)
Default value (above encoding)insert
FelixConfiguration fieldchainInsertMode (YAML) ChainInsertMode (Go API)
FelixConfiguration schemaOne of: <code>Append</code>, <code>Insert</code>.
Default value (YAML)Insert
NotesRequired, Felix will exit if the value is invalid.

DataplaneDriver (config file) / dataplaneDriver (YAML)

Filename of the external dataplane driver to use. Only used if UseInternalDataplaneDriver is set to false.

Detail
Environment variableFELIX_DataplaneDriver
Encoding (env var/config file)Path to executable, which must exist. If not an absolute path, the directory containing this binary and the system path will be searched.
Default value (above encoding)calico-iptables-plugin
FelixConfiguration fielddataplaneDriver (YAML) DataplaneDriver (Go API)
FelixConfiguration schemaString.
Default value (YAML)calico-iptables-plugin
NotesRequired, Felix will exit if the value is invalid.

DataplaneWatchdogTimeout (config file) / dataplaneWatchdogTimeout (YAML)

The readiness/liveness timeout used for Felix's (internal) dataplane driver. Deprecated: replaced by the generic HealthTimeoutOverrides.

Detail
Environment variableFELIX_DataplaneWatchdogTimeout
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)90 (1m30s)
FelixConfiguration fielddataplaneWatchdogTimeout (YAML) DataplaneWatchdogTimeout (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)1m30s

DefaultEndpointToHostAction (config file) / defaultEndpointToHostAction (YAML)

Controls what happens to traffic that goes from a workload endpoint to the host itself (after the endpoint's egress policy is applied). By default, Calico blocks traffic from workload endpoints to the host itself with an iptables "DROP" action. If you want to allow some or all traffic from endpoint to host, set this parameter to RETURN or ACCEPT. Use RETURN if you have your own rules in the iptables "INPUT" chain; Calico will insert its rules at the top of that chain, then "RETURN" packets to the "INPUT" chain once it has completed processing workload endpoint egress policy. Use ACCEPT to unconditionally accept packets from workloads after processing workload endpoint egress policy.

Detail
Environment variableFELIX_DefaultEndpointToHostAction
Encoding (env var/config file)One of: <code>ACCEPT</code>, <code>DROP</code>, <code>RETURN</code> (case insensitive)
Default value (above encoding)DROP
FelixConfiguration fielddefaultEndpointToHostAction (YAML) DefaultEndpointToHostAction (Go API)
FelixConfiguration schemaOne of: <code>Accept</code>, <code>Drop</code>, <code>Return</code>.
Default value (YAML)Drop
NotesRequired, Felix will exit if the value is invalid.

DeviceRouteProtocol (config file) / deviceRouteProtocol (YAML)

Controls the protocol to set on routes programmed by Felix. The protocol is an 8-bit label used to identify the owner of the route.

Detail
Environment variableFELIX_DeviceRouteProtocol
Encoding (env var/config file)Integer
Default value (above encoding)3
FelixConfiguration fielddeviceRouteProtocol (YAML) DeviceRouteProtocol (Go API)
FelixConfiguration schemaInteger
Default value (YAML)3

DeviceRouteSourceAddress (config file) / deviceRouteSourceAddress (YAML)

IPv4 address to set as the source hint for routes programmed by Felix. When not set the source address for local traffic from host to workload will be determined by the kernel.

Detail
Environment variableFELIX_DeviceRouteSourceAddress
Encoding (env var/config file)IPv4 address
Default value (above encoding)none
FelixConfiguration fielddeviceRouteSourceAddress (YAML) DeviceRouteSourceAddress (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

DeviceRouteSourceAddressIPv6 (config file) / deviceRouteSourceAddressIPv6 (YAML)

IPv6 address to set as the source hint for routes programmed by Felix. When not set the source address for local traffic from host to workload will be determined by the kernel.

Detail
Environment variableFELIX_DeviceRouteSourceAddressIPv6
Encoding (env var/config file)IPv6 address
Default value (above encoding)none
FelixConfiguration fielddeviceRouteSourceAddressIPv6 (YAML) DeviceRouteSourceAddressIPv6 (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

DisableConntrackInvalidCheck (config file) / disableConntrackInvalidCheck (YAML)

Disables the check for invalid connections in conntrack. While the conntrack invalid check helps to detect malicious traffic, it can also cause issues with certain multi-NIC scenarios.

Detail
Environment variableFELIX_DisableConntrackInvalidCheck
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fielddisableConntrackInvalidCheck (YAML) DisableConntrackInvalidCheck (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

EndpointStatusPathPrefix (config file) / endpointStatusPathPrefix (YAML)

The path to the directory where endpoint status will be written. Endpoint status file reporting is disabled if field is left empty.

Chosen directory should match the directory used by the CNI plugin for PodStartupDelay.

Detail
Environment variableFELIX_EndpointStatusPathPrefix
Encoding (env var/config file)Path to file
Default value (above encoding)/var/run/calico
FelixConfiguration fieldendpointStatusPathPrefix (YAML) EndpointStatusPathPrefix (Go API)
FelixConfiguration schemaString.
Default value (YAML)/var/run/calico

ExternalNodesCIDRList (config file) / externalNodesList (YAML)

A list of CIDR's of external, non-Calico nodes from which VXLAN/IPIP overlay traffic will be allowed. By default, external tunneled traffic is blocked to reduce attack surface.

Detail
Environment variableFELIX_ExternalNodesCIDRList
Encoding (env var/config file)Comma-delimited list of CIDRs
Default value (above encoding)none
FelixConfiguration fieldexternalNodesList (YAML) ExternalNodesCIDRList (Go API)
FelixConfiguration schemaList of strings: <code>["<string>", ...]</code>.
Default value (YAML)none
NotesFelix will exit if the value is invalid.

FailsafeInboundHostPorts (config file) / failsafeInboundHostPorts (YAML)

A list of ProtoPort struct objects including UDP/TCP/SCTP ports and CIDRs that Felix will allow incoming traffic to host endpoints on irrespective of the security policy. This is useful to avoid accidentally cutting off a host with incorrect configuration. For backwards compatibility, if the protocol is not specified, it defaults to "tcp". If a CIDR is not specified, it will allow traffic from all addresses. To disable all inbound host ports, use the value "[]". The default value allows ssh access, DHCP, BGP, etcd and the Kubernetes API.

Detail
Environment variableFELIX_FailsafeInboundHostPorts
Encoding (env var/config file)Comma-delimited list of numeric ports with optional protocol and CIDR:<code>(tcp|udp):<cidr>:<port></code>, <code>(tcp|udp):<port></code> or <code><port></code>. IPv6 CIDRs must be enclosed in square brackets.
Default value (above encoding)tcp:22,udp:68,tcp:179,tcp:2379,tcp:2380,tcp:5473,tcp:6443,tcp:6666,tcp:6667
FelixConfiguration fieldfailsafeInboundHostPorts (YAML) FailsafeInboundHostPorts (Go API)
FelixConfiguration schemaList of protocol/port objects with optional CIDR match: <code>[{protocol: "TCP|UDP", port: <port>, net: "<cidr>"}, ...]</code>.
Default value (YAML)[{"protocol":"tcp","port":22},{"protocol":"udp","port":68},{"protocol":"tcp","port":179},{"protocol":"tcp","port":2379},{"protocol":"tcp","port":2380},{"protocol":"tcp","port":5473},{"protocol":"tcp","port":6443},{"protocol":"tcp","port":6666},{"protocol":"tcp","port":6667}]
NotesFelix will exit if the value is invalid.

FailsafeOutboundHostPorts (config file) / failsafeOutboundHostPorts (YAML)

A list of PortProto struct objects including UDP/TCP/SCTP ports and CIDRs that Felix will allow outgoing traffic from host endpoints to irrespective of the security policy. This is useful to avoid accidentally cutting off a host with incorrect configuration. For backwards compatibility, if the protocol is not specified, it defaults to "tcp". If a CIDR is not specified, it will allow traffic from all addresses. To disable all outbound host ports, use the value "[]". The default value opens etcd's standard ports to ensure that Felix does not get cut off from etcd as well as allowing DHCP, DNS, BGP and the Kubernetes API.

Detail
Environment variableFELIX_FailsafeOutboundHostPorts
Encoding (env var/config file)Comma-delimited list of numeric ports with optional protocol and CIDR:<code>(tcp|udp):<cidr>:<port></code>, <code>(tcp|udp):<port></code> or <code><port></code>. IPv6 CIDRs must be enclosed in square brackets.
Default value (above encoding)udp:53,udp:67,tcp:179,tcp:2379,tcp:2380,tcp:5473,tcp:6443,tcp:6666,tcp:6667
FelixConfiguration fieldfailsafeOutboundHostPorts (YAML) FailsafeOutboundHostPorts (Go API)
FelixConfiguration schemaList of protocol/port objects with optional CIDR match: <code>[{protocol: "TCP|UDP", port: <port>, net: "<cidr>"}, ...]</code>.
Default value (YAML)[{"protocol":"udp","port":53},{"protocol":"udp","port":67},{"protocol":"tcp","port":179},{"protocol":"tcp","port":2379},{"protocol":"tcp","port":2380},{"protocol":"tcp","port":5473},{"protocol":"tcp","port":6443},{"protocol":"tcp","port":6666},{"protocol":"tcp","port":6667}]
NotesFelix will exit if the value is invalid.

FloatingIPs (config file) / floatingIPs (YAML)

Configures whether or not Felix will program non-OpenStack floating IP addresses. (OpenStack-derived floating IPs are always programmed, regardless of this setting.)

Detail
Environment variableFELIX_FloatingIPs
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Disabled
FelixConfiguration fieldfloatingIPs (YAML) FloatingIPs (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Disabled

IPForwarding (config file) / ipForwarding (YAML)

Controls whether Felix sets the host sysctls to enable IP forwarding. IP forwarding is required when using Calico for workload networking. This should be disabled only on hosts where Calico is used solely for host protection. In BPF mode, due to a kernel interaction, either IPForwarding must be enabled or BPFEnforceRPF must be disabled.

Detail
Environment variableFELIX_IPForwarding
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Enabled
FelixConfiguration fieldipForwarding (YAML) IPForwarding (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Enabled

IPv4ElevatedRoutePriority (config file) / ipv4ElevatedRoutePriority (YAML)

Route Priority value for an elevated priority Calico-programmed IPv4 route. Note, higher values mean lower priority. Elevated priority is used during VM live migration, and for optimal behaviour IPv4ElevatedRoutePriority must be less than IPv4NormalRoutePriority.

Detail
Environment variableFELIX_IPv4ElevatedRoutePriority
Encoding (env var/config file)Integer: [1,2147483646]
Default value (above encoding)512
FelixConfiguration fieldipv4ElevatedRoutePriority (YAML) IPv4ElevatedRoutePriority (Go API)
FelixConfiguration schemaInteger: [1,2147483646]
Default value (YAML)512

IPv4NormalRoutePriority (config file) / ipv4NormalRoutePriority (YAML)

Route Priority value for a normal priority Calico-programmed IPv4 route. Note, higher values mean lower priority.

Detail
Environment variableFELIX_IPv4NormalRoutePriority
Encoding (env var/config file)Integer: [1,2147483646]
Default value (above encoding)1024
FelixConfiguration fieldipv4NormalRoutePriority (YAML) IPv4NormalRoutePriority (Go API)
FelixConfiguration schemaInteger: [1,2147483646]
Default value (YAML)1024

IPv6ElevatedRoutePriority (config file) / ipv6ElevatedRoutePriority (YAML)

Route Priority value for an elevated priority Calico-programmed IPv6 route. Note, higher values mean lower priority. Elevated priority is used during VM live migration, and for optimal behaviour IPv6ElevatedRoutePriority must be less than IPv6NormalRoutePriority.

Detail
Environment variableFELIX_IPv6ElevatedRoutePriority
Encoding (env var/config file)Integer: [1,2147483646]
Default value (above encoding)512
FelixConfiguration fieldipv6ElevatedRoutePriority (YAML) IPv6ElevatedRoutePriority (Go API)
FelixConfiguration schemaInteger: [1,2147483646]
Default value (YAML)512

IPv6NormalRoutePriority (config file) / ipv6NormalRoutePriority (YAML)

Route Priority value for a normal priority Calico-programmed IPv6 route. Note, higher values mean lower priority.

Detail
Environment variableFELIX_IPv6NormalRoutePriority
Encoding (env var/config file)Integer: [1,2147483646]
Default value (above encoding)1024
FelixConfiguration fieldipv6NormalRoutePriority (YAML) IPv6NormalRoutePriority (Go API)
FelixConfiguration schemaInteger: [1,2147483646]
Default value (YAML)1024

InterfaceExclude (config file) / interfaceExclude (YAML)

A comma-separated list of interface names that should be excluded when Felix is resolving host endpoints. The default value ensures that Felix ignores Kubernetes' internal kube-ipvs0 device. If you want to exclude multiple interface names using a single value, the list supports regular expressions. For regular expressions you must wrap the value with /. For example having values /^kube/,veth1 will exclude all interfaces that begin with kube and also the interface veth1.

Detail
Environment variableFELIX_InterfaceExclude
Encoding (env var/config file)Comma-delimited list of Linux interface names/regex patterns. Regex patterns must start/end with <code>/</code>.
Default value (above encoding)kube-ipvs0
FelixConfiguration fieldinterfaceExclude (YAML) InterfaceExclude (Go API)
FelixConfiguration schemaString.
Default value (YAML)kube-ipvs0

InterfacePrefix (config file) / interfacePrefix (YAML)

The interface name prefix that identifies workload endpoints and so distinguishes them from host endpoint interfaces. Note: in environments other than bare metal, the orchestrators configure this appropriately. For example our Kubernetes and Docker integrations set the 'cali' value, and our OpenStack integration sets the 'tap' value.

Detail
Environment variableFELIX_InterfacePrefix
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9_-]{1,15}(,[a-zA-Z0-9_-]{1,15})*$</code>
Default value (above encoding)cali
FelixConfiguration fieldinterfacePrefix (YAML) InterfacePrefix (Go API)
FelixConfiguration schemaString.
Default value (YAML)cali
NotesRequired, Felix will exit if the value is invalid.

InterfaceRefreshInterval (config file) / interfaceRefreshInterval (YAML)

The period at which Felix rescans local interfaces to verify their state. The rescan can be disabled by setting the interval to 0.

Detail
Environment variableFELIX_InterfaceRefreshInterval
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)90 (1m30s)
FelixConfiguration fieldinterfaceRefreshInterval (YAML) InterfaceRefreshInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)1m30s

Ipv6Support (config file) / ipv6Support (YAML)

Controls whether Felix enables support for IPv6 (if supported by the in-use dataplane).

Detail
Environment variableFELIX_Ipv6Support
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldipv6Support (YAML) IPv6Support (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

IstioAmbientMode (config file) / istioAmbientMode (YAML)

Configures Felix to work together with Tigera's Istio distribution.

Detail
Environment variableFELIX_IstioAmbientMode
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Disabled
FelixConfiguration fieldistioAmbientMode (YAML) IstioAmbientMode (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Disabled

IstioDSCPMark (config file) / istioDSCPMark (YAML)

Sets the value to use when directing traffic to Istio ZTunnel, when Istio is enabled. The mark is set only on SYN packets at the final hop to avoid interference with other protocols. This value is reserved by Calico and must not be used with other Istio installation.

Detail
Environment variableFELIX_IstioDSCPMark
Encoding (env var/config file)Numeric value: An integer from 0 to 63, representing the 6-bit DSCP code directly; Named value: A case-insensitive string corresponding to a standardized DSCP name (e.g., "CS0", "AF11", "AF21", "EF", etc.) as defined in the IANA registry for Differentiated Services Field Codepoints.
Default value (above encoding)23
FelixConfiguration fieldistioDSCPMark (YAML) IstioDSCPMark (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

LiveMigrationRouteConvergenceTime (config file) / liveMigrationRouteConvergenceTime (YAML)

The time to keep elevated route priority after a VM live migration completes. This allows routes to converge across the cluster before reverting to normal priority.

Detail
Environment variableFELIX_LiveMigrationRouteConvergenceTime
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)30 (30s)
FelixConfiguration fieldliveMigrationRouteConvergenceTime (YAML) LiveMigrationRouteConvergenceTime (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)30s

MTUIfacePattern (config file) / mtuIfacePattern (YAML)

A regular expression that controls which interfaces Felix should scan in order to calculate the host's MTU. This should not match workload interfaces (usually named cali...).

Detail
Environment variableFELIX_MTUIfacePattern
Encoding (env var/config file)Regular expression
Default value (above encoding)^((en|wl|ww|sl|ib)[Pcopsvx].*|(eth|wlan|wwan).*)
FelixConfiguration fieldmtuIfacePattern (YAML) MTUIfacePattern (Go API)
FelixConfiguration schemaString.
Default value (YAML)^((en|wl|ww|sl|ib)[Pcopsvx].*|(eth|wlan|wwan).*)

NATOutgoingAddress (config file) / natOutgoingAddress (YAML)

Specifies an address to use when performing source NAT for traffic in a natOutgoing pool that is leaving the network. By default the address used is an address on the interface the traffic is leaving on (i.e. it uses the iptables MASQUERADE target).

Detail
Environment variableFELIX_NATOutgoingAddress
Encoding (env var/config file)IPv4 address
Default value (above encoding)none
FelixConfiguration fieldnatOutgoingAddress (YAML) NATOutgoingAddress (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

NATOutgoingExclusions (config file) / natOutgoingExclusions (YAML)

When a IP pool setting natOutgoing is true, packets sent from Calico networked containers in this IP pool to destinations will be masqueraded. Configure which type of destinations is excluded from being masqueraded.

  • IPPoolsOnly: destinations outside of this IP pool will be masqueraded.
  • IPPoolsAndHostIPs: destinations outside of this IP pool and all hosts will be masqueraded.
Detail
Environment variableFELIX_NATOutgoingExclusions
Encoding (env var/config file)One of: <code>IPPoolsAndHostIPs</code>, <code>IPPoolsOnly</code> (case insensitive)
Default value (above encoding)IPPoolsOnly
FelixConfiguration fieldnatOutgoingExclusions (YAML) NATOutgoingExclusions (Go API)
FelixConfiguration schemaOne of: <code>"IPPoolsAndHostIPs"</code>, <code>"IPPoolsOnly"</code>.
Default value (YAML)IPPoolsOnly

NATPortRange (config file) / natPortRange (YAML)

Specifies the range of ports that is used for port mapping when doing outgoing NAT. When unset the default behavior of the network stack is used.

Detail
Environment variableFELIX_NATPortRange
Encoding (env var/config file)Port range: either a single number in [0,65535] or a range of numbers <code>n:m</code>
Default value (above encoding)none
FelixConfiguration fieldnatPortRange (YAML) NATPortRange (Go API)
FelixConfiguration schemaPort range: either an integer in [0,65535] or a string, representing a range, in format <code>n:m</code>
Default value (YAML)0

NFTablesMode (config file) / nftablesMode (YAML)

Configures nftables support in Felix.

Detail
Environment variableFELIX_NFTablesMode
Encoding (env var/config file)One of: <code>Auto</code>, <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Auto
FelixConfiguration fieldnftablesMode (YAML) NFTablesMode (Go API)
FelixConfiguration schemaOne of: <code>"Auto"</code>, <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Auto

NetlinkTimeoutSecs (config file) / netlinkTimeout (YAML)

The timeout when talking to the kernel over the netlink protocol, used for programming routes, rules, and other kernel objects.

Detail
Environment variableFELIX_NetlinkTimeoutSecs
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)10 (10s)
FelixConfiguration fieldnetlinkTimeout (YAML) NetlinkTimeout (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)10s

PolicySyncPathPrefix (config file) / policySyncPathPrefix (YAML)

Used to by Felix to communicate policy changes to external services, like Application layer policy.

Detail
Environment variableFELIX_PolicySyncPathPrefix
Encoding (env var/config file)Path to file
Default value (above encoding)none
FelixConfiguration fieldpolicySyncPathPrefix (YAML) PolicySyncPathPrefix (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

ProgramClusterRoutes (config file) / programClusterRoutes (YAML)

Controls how a cluster node gets a route to a workload on another node, when that workload's IP comes from an IP Pool with vxlanMode: Never. When ProgramClusterRoutes is Disabled, it is expected that confd and BIRD will program that route. When ProgramClusterRoutes is Enabled, Felix program that route. Felix always programs such routes for IP Pools with vxlanMode: Always or vxlanMode: CrossSubnet.

Detail
Environment variableFELIX_ProgramClusterRoutes
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Disabled
FelixConfiguration fieldprogramClusterRoutes (YAML) ProgramClusterRoutes (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Disabled

RemoveExternalRoutes (config file) / removeExternalRoutes (YAML)

Controls whether Felix will remove unexpected routes to workload interfaces. Felix will always clean up expected routes that use the configured DeviceRouteProtocol. To add your own routes, you must use a distinct protocol (in addition to setting this field to false).

Detail
Environment variableFELIX_RemoveExternalRoutes
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldremoveExternalRoutes (YAML) RemoveExternalRoutes (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

RequireMTUFile (config file) / requireMTUFile (YAML)

Specifies whether mtu file is required to start the felix. Optional as to keep the same as previous behavior.

Detail
Environment variableFELIX_RequireMTUFile
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldrequireMTUFile (YAML) RequireMTUFile (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

RouteRefreshInterval (config file) / routeRefreshInterval (YAML)

The period at which Felix re-checks the routes in the dataplane to ensure that no other process has accidentally broken Calico's rules. Set to 0 to disable route refresh.

Detail
Environment variableFELIX_RouteRefreshInterval
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)90 (1m30s)
FelixConfiguration fieldrouteRefreshInterval (YAML) RouteRefreshInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)1m30s

RouteSource (config file) / routeSource (YAML)

Configures where Felix gets its routing information.

  • WorkloadIPs: use workload endpoints to construct routes.
  • CalicoIPAM: the default - use IPAM data to construct routes.
Detail
Environment variableFELIX_RouteSource
Encoding (env var/config file)One of: <code>CalicoIPAM</code>, <code>WorkloadIPs</code> (case insensitive)
Default value (above encoding)CalicoIPAM
FelixConfiguration fieldrouteSource (YAML) RouteSource (Go API)
FelixConfiguration schemaOne of: <code>CalicoIPAM</code>, <code>WorkloadIPs</code>.
Default value (YAML)CalicoIPAM

RouteSyncDisabled (config file) / routeSyncDisabled (YAML)

Will disable all operations performed on the route table. Set to true to run in network-policy mode only.

Detail
Environment variableFELIX_RouteSyncDisabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldrouteSyncDisabled (YAML) RouteSyncDisabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

RouteTableRange (config file) / routeTableRange (YAML)

Deprecated in favor of RouteTableRanges. Calico programs additional Linux route tables for various purposes. RouteTableRange specifies the indices of the route tables that Calico should use.

Detail
Environment variableFELIX_RouteTableRange
Encoding (env var/config file)Range of route table indices <code>n-m</code>, where <code>n</code> and <code>m</code> are integers in [0,250].
Default value (above encoding)none
FelixConfiguration fieldrouteTableRange (YAML) RouteTableRange (Go API)
FelixConfiguration schemaRoute table range: <code>{min:<n>, max<m>}</code>.
Default value (YAML)none
NotesFelix will exit if the value is invalid.

RouteTableRanges (config file) / routeTableRanges (YAML)

Calico programs additional Linux route tables for various purposes. RouteTableRanges specifies a set of table index ranges that Calico should use. DeprecatesRouteTableRange, overrides RouteTableRange.

Detail
Environment variableFELIX_RouteTableRanges
Encoding (env var/config file)Comma or space-delimited list of route table ranges of the form <code>n-m</code> where <code>n</code> and <code>m</code> are integers in [0,4294967295]. The sum of the sizes of all ranges may not exceed 65535.
Default value (above encoding)none
FelixConfiguration fieldrouteTableRanges (YAML) RouteTableRanges (Go API)
FelixConfiguration schemaList of route table ranges: <code>[{min:<n>, max<m>}, ...]</code>.
Default value (YAML)none
NotesFelix will exit if the value is invalid.

ServiceLoopPrevention (config file) / serviceLoopPrevention (YAML)

When service IP advertisement is enabled, prevent routing loops to service IPs that are not in use, by dropping or rejecting packets that do not get DNAT'd by kube-proxy. Unless set to "Disabled", in which case such routing loops continue to be allowed.

Detail
Environment variableFELIX_ServiceLoopPrevention
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Drop</code>, <code>Reject</code> (case insensitive)
Default value (above encoding)Drop
FelixConfiguration fieldserviceLoopPrevention (YAML) ServiceLoopPrevention (Go API)
FelixConfiguration schemaOne of: <code>Disabled</code>, <code>Drop</code>, <code>Reject</code>.
Default value (YAML)Drop

SidecarAccelerationEnabled (config file) / sidecarAccelerationEnabled (YAML)

Enables experimental sidecar acceleration.

Detail
Environment variableFELIX_SidecarAccelerationEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldsidecarAccelerationEnabled (YAML) SidecarAccelerationEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

UseInternalDataplaneDriver (config file) / useInternalDataplaneDriver (YAML)

If true, Felix will use its internal dataplane programming logic. If false, it will launch an external dataplane driver and communicate with it over protobuf.

Detail
Environment variableFELIX_UseInternalDataplaneDriver
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fielduseInternalDataplaneDriver (YAML) UseInternalDataplaneDriver (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

WorkloadSourceSpoofing (config file) / workloadSourceSpoofing (YAML)

Controls whether pods can use the allowedSourcePrefixes annotation to send traffic with a source IP address that is not theirs. This is disabled by default. When set to "Any", pods can request any prefix.

Detail
Environment variableFELIX_WorkloadSourceSpoofing
Encoding (env var/config file)One of: <code>Any</code>, <code>Disabled</code> (case insensitive)
Default value (above encoding)Disabled
FelixConfiguration fieldworkloadSourceSpoofing (YAML) WorkloadSourceSpoofing (Go API)
FelixConfiguration schemaOne of: <code>Any</code>, <code>Disabled</code>.
Default value (YAML)Disabled

<a id="dataplane-iptables">Dataplane: iptables

IpsetsRefreshInterval (config file) / ipsetsRefreshInterval (YAML)

Controls the period at which Felix re-checks all IP sets to look for discrepancies. Set to 0 to disable the periodic refresh.

Detail
Environment variableFELIX_IpsetsRefreshInterval
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)90 (1m30s)
FelixConfiguration fieldipsetsRefreshInterval (YAML) IpsetsRefreshInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)1m30s

IptablesBackend (config file) / iptablesBackend (YAML)

Controls which backend of iptables will be used. The default is Auto.

Warning: changing this on a running system can leave "orphaned" rules in the "other" backend. These should be cleaned up to avoid confusing interactions.

Detail
Environment variableFELIX_IptablesBackend
Encoding (env var/config file)One of: <code>auto</code>, <code>legacy</code>, <code>nft</code> (case insensitive)
Default value (above encoding)auto
FelixConfiguration fieldiptablesBackend (YAML) IptablesBackend (Go API)
FelixConfiguration schemaOne of: <code>"Auto"</code>, <code>"Legacy"</code>, <code>"NFT"</code>.
Default value (YAML)auto

IptablesFilterAllowAction (config file) / iptablesFilterAllowAction (YAML)

Controls what happens to traffic that is accepted by a Felix policy chain in the iptables filter table (which is used for "normal" policy). The default will immediately Accept the traffic. Use Return to send the traffic back up to the system chains for further processing.

Detail
Environment variableFELIX_IptablesFilterAllowAction
Encoding (env var/config file)One of: <code>ACCEPT</code>, <code>RETURN</code> (case insensitive)
Default value (above encoding)ACCEPT
FelixConfiguration fieldiptablesFilterAllowAction (YAML) IptablesFilterAllowAction (Go API)
FelixConfiguration schemaOne of: <code>Accept</code>, <code>Return</code>.
Default value (YAML)Accept
NotesRequired, Felix will exit if the value is invalid.

IptablesFilterDenyAction (config file) / iptablesFilterDenyAction (YAML)

Controls what happens to traffic that is denied by network policy. By default Calico blocks traffic with an iptables "DROP" action. If you want to use "REJECT" action instead you can configure it in here.

Detail
Environment variableFELIX_IptablesFilterDenyAction
Encoding (env var/config file)One of: <code>DROP</code>, <code>REJECT</code> (case insensitive)
Default value (above encoding)DROP
FelixConfiguration fieldiptablesFilterDenyAction (YAML) IptablesFilterDenyAction (Go API)
FelixConfiguration schemaOne of: <code>Drop</code>, <code>Reject</code>.
Default value (YAML)Drop
NotesRequired, Felix will exit if the value is invalid.

IptablesLockProbeIntervalMillis (config file) / iptablesLockProbeInterval (YAML)

Configures the interval between attempts to claim the xtables lock. Shorter intervals are more responsive but use more CPU.

Detail
Environment variableFELIX_IptablesLockProbeIntervalMillis
Encoding (env var/config file)Milliseconds (floating point)
Default value (above encoding)50 (50ms)
FelixConfiguration fieldiptablesLockProbeInterval (YAML) IptablesLockProbeInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)50ms

IptablesMangleAllowAction (config file) / iptablesMangleAllowAction (YAML)

Controls what happens to traffic that is accepted by a Felix policy chain in the iptables mangle table (which is used for "pre-DNAT" policy). The default will immediately Accept the traffic. Use Return to send the traffic back up to the system chains for further processing.

Detail
Environment variableFELIX_IptablesMangleAllowAction
Encoding (env var/config file)One of: <code>ACCEPT</code>, <code>RETURN</code> (case insensitive)
Default value (above encoding)ACCEPT
FelixConfiguration fieldiptablesMangleAllowAction (YAML) IptablesMangleAllowAction (Go API)
FelixConfiguration schemaOne of: <code>Accept</code>, <code>Return</code>.
Default value (YAML)Accept
NotesRequired, Felix will exit if the value is invalid.

IptablesMarkMask (config file) / iptablesMarkMask (YAML)

The mask that Felix selects its IPTables Mark bits from. Should be a 32 bit hexadecimal number with at least 8 bits set, none of which clash with any other mark bits in use on the system.

Detail
Environment variableFELIX_IptablesMarkMask
Encoding (env var/config file)32-bit bitmask (hex or deccimal allowed) with at least 2 bits set, example: <code>0xffff0000</code>
Default value (above encoding)0xffff0000
FelixConfiguration fieldiptablesMarkMask (YAML) IptablesMarkMask (Go API)
FelixConfiguration schemaUnsigned 32-bit integer.
Default value (YAML)0xffff0000
NotesRequired, Felix will exit if the value is invalid.

IptablesNATOutgoingInterfaceFilter (config file) / iptablesNATOutgoingInterfaceFilter (YAML)

This parameter can be used to limit the host interfaces on which Calico will apply SNAT to traffic leaving a Calico IPAM pool with "NAT outgoing" enabled. This can be useful if you have a main data interface, where traffic should be SNATted and a secondary device (such as the docker bridge) which is local to the host and doesn't require SNAT. This parameter uses the iptables interface matching syntax, which allows + as a wildcard. Most users will not need to set this. Example: if your data interfaces are eth0 and eth1 and you want to exclude the docker bridge, you could set this to eth+.

Detail
Environment variableFELIX_IptablesNATOutgoingInterfaceFilter
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9:._+-]{1,15}$</code>
Default value (above encoding)none
FelixConfiguration fieldiptablesNATOutgoingInterfaceFilter (YAML) IptablesNATOutgoingInterfaceFilter (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

IptablesPostWriteCheckIntervalSecs (config file) / iptablesPostWriteCheckInterval (YAML)

The period after Felix has done a write to the dataplane that it schedules an extra read back in order to check the write was not clobbered by another process. This should only occur if another application on the system doesn't respect the iptables lock.

Detail
Environment variableFELIX_IptablesPostWriteCheckIntervalSecs
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)5 (5s)
FelixConfiguration fieldiptablesPostWriteCheckInterval (YAML) IptablesPostWriteCheckInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)5s

IptablesRefreshInterval (config file) / iptablesRefreshInterval (YAML)

The period at which Felix re-checks the IP sets in the dataplane to ensure that no other process has accidentally broken Calico's rules. Set to 0 to disable IP sets refresh. Note: the default for this value is lower than the other refresh intervals as a workaround for a Linux kernel bug that was fixed in kernel version 4.11. If you are using v4.11 or greater you may want to set this to, a higher value to reduce Felix CPU usage.

Detail
Environment variableFELIX_IptablesRefreshInterval
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)180 (3m0s)
FelixConfiguration fieldiptablesRefreshInterval (YAML) IptablesRefreshInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)3m0s

KubeNodePortRanges (config file) / kubeNodePortRanges (YAML)

Holds list of port ranges used for service node ports. Only used if felix detects kube-proxy running in ipvs mode. Felix uses these ranges to separate host and workload traffic. .

Detail
Environment variableFELIX_KubeNodePortRanges
Encoding (env var/config file)List of port ranges: comma-delimited list of either single numbers in range [0,65535] or a ranges of numbers <code>n:m</code>
Default value (above encoding)30000:32767
FelixConfiguration fieldkubeNodePortRanges (YAML) KubeNodePortRanges (Go API)
FelixConfiguration schemaList of ports: <code>[<port>, ...]</code> where <code><port></code> is a port number (integer) or range (string), for example <code>80</code>, <code>8080:8089</code>.
Default value (YAML)["30000:32767"]

MaxIpsetSize (config file) / maxIpsetSize (YAML)

The maximum number of IP addresses that can be stored in an IP set. Not applicable if using the nftables backend.

Detail
Environment variableFELIX_MaxIpsetSize
Encoding (env var/config file)Integer
Default value (above encoding)1048576
FelixConfiguration fieldmaxIpsetSize (YAML) MaxIpsetSize (Go API)
FelixConfiguration schemaInteger
Default value (YAML)1048576
NotesRequired.

<a id="dataplane-nftables">Dataplane: nftables

NftablesFilterAllowAction (config file) / nftablesFilterAllowAction (YAML)

Controls the nftables action that Felix uses to represent the "allow" policy verdict in the filter table. The default is to ACCEPT the traffic, which is a terminal action. Alternatively, RETURN can be used to return the traffic back to the top-level chain for further processing by your rules.

Detail
Environment variableFELIX_NftablesFilterAllowAction
Encoding (env var/config file)One of: <code>ACCEPT</code>, <code>RETURN</code> (case insensitive)
Default value (above encoding)ACCEPT
FelixConfiguration fieldnftablesFilterAllowAction (YAML) NftablesFilterAllowAction (Go API)
FelixConfiguration schemaOne of: <code>Accept</code>, <code>Return</code>.
Default value (YAML)Accept
NotesRequired, Felix will exit if the value is invalid.

NftablesFilterDenyAction (config file) / nftablesFilterDenyAction (YAML)

Controls what happens to traffic that is denied by network policy. By default, Calico blocks traffic with a "drop" action. If you want to use a "reject" action instead you can configure it here.

Detail
Environment variableFELIX_NftablesFilterDenyAction
Encoding (env var/config file)One of: <code>DROP</code>, <code>REJECT</code> (case insensitive)
Default value (above encoding)DROP
FelixConfiguration fieldnftablesFilterDenyAction (YAML) NftablesFilterDenyAction (Go API)
FelixConfiguration schemaOne of: <code>Drop</code>, <code>Reject</code>.
Default value (YAML)Drop
NotesRequired, Felix will exit if the value is invalid.

NftablesMangleAllowAction (config file) / nftablesMangleAllowAction (YAML)

Controls the nftables action that Felix uses to represent the "allow" policy verdict in the mangle table. The default is to ACCEPT the traffic, which is a terminal action. Alternatively, RETURN can be used to return the traffic back to the top-level chain for further processing by your rules.

Detail
Environment variableFELIX_NftablesMangleAllowAction
Encoding (env var/config file)One of: <code>ACCEPT</code>, <code>RETURN</code> (case insensitive)
Default value (above encoding)ACCEPT
FelixConfiguration fieldnftablesMangleAllowAction (YAML) NftablesMangleAllowAction (Go API)
FelixConfiguration schemaOne of: <code>Accept</code>, <code>Return</code>.
Default value (YAML)Accept
NotesRequired, Felix will exit if the value is invalid.

NftablesMarkMask (config file) / nftablesMarkMask (YAML)

The mask that Felix selects its nftables Mark bits from. Should be a 32 bit hexadecimal number with at least 8 bits set, none of which clash with any other mark bits in use on the system.

Detail
Environment variableFELIX_NftablesMarkMask
Encoding (env var/config file)32-bit bitmask (hex or deccimal allowed) with at least 2 bits set, example: <code>0xffff0000</code>
Default value (above encoding)0xffff0000
FelixConfiguration fieldnftablesMarkMask (YAML) NftablesMarkMask (Go API)
FelixConfiguration schemaUnsigned 32-bit integer.
Default value (YAML)0xffff0000
NotesRequired, Felix will exit if the value is invalid.

NftablesRefreshInterval (config file) / nftablesRefreshInterval (YAML)

Controls the interval at which Felix periodically refreshes the nftables rules.

Detail
Environment variableFELIX_NftablesRefreshInterval
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)180 (3m0s)
FelixConfiguration fieldnftablesRefreshInterval (YAML) NftablesRefreshInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)3m0s

<a id="dataplane-ebpf">Dataplane: eBPF

BPFAttachType (config file) / bpfAttachType (YAML)

Controls how are the BPF programs at the network interfaces attached. By default TCX is used where available to enable easier coexistence with 3rd party programs. TC can force the legacy method of attaching via a qdisc. TCX falls back to TC if TCX is not available.

Detail
Environment variableFELIX_BPFAttachType
Encoding (env var/config file)One of: <code>TCX</code>, <code>TC</code> (case insensitive)
Default value (above encoding)TCX
FelixConfiguration fieldbpfAttachType (YAML) BPFAttachType (Go API)
FelixConfiguration schemaOne of: <code>"TC"</code>, <code>"TCX"</code>.
Default value (YAML)TCX
NotesRequired.

BPFCTLBLogFilter (config file) / bpfCTLBLogFilter (YAML)

Specifies, what is logged by connect time load balancer when BPFLogLevel is debug. Currently has to be specified as 'all' when BPFLogFilters is set to see CTLB logs.

Detail
Environment variableFELIX_BPFCTLBLogFilter
Encoding (env var/config file)One of: <code>all</code> (case insensitive)
Default value (above encoding)none
FelixConfiguration fieldbpfCTLBLogFilter (YAML) BPFCTLBLogFilter (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

BPFConnectTimeLoadBalancing (config file) / bpfConnectTimeLoadBalancing (YAML)

When in BPF mode, controls whether Felix installs the connect-time load balancer. The connect-time load balancer is required for the host to be able to reach Kubernetes services and it improves the performance of pod-to-service connections.When set to TCP, connect time load balancing is available only for services with TCP ports.

Detail
Environment variableFELIX_BPFConnectTimeLoadBalancing
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code>, <code>TCP</code> (case insensitive)
Default value (above encoding)TCP
FelixConfiguration fieldbpfConnectTimeLoadBalancing (YAML) BPFConnectTimeLoadBalancing (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>, <code>"TCP"</code>.
Default value (YAML)TCP
NotesRequired.

BPFConnectTimeLoadBalancingEnabled (config file) / bpfConnectTimeLoadBalancingEnabled (YAML)

When in BPF mode, controls whether Felix installs the connection-time load balancer. The connect-time load balancer is required for the host to be able to reach Kubernetes services and it improves the performance of pod-to-service connections. The only reason to disable it is for debugging purposes.

Deprecated: Use BPFConnectTimeLoadBalancing.

Detail
Environment variableFELIX_BPFConnectTimeLoadBalancingEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)none
FelixConfiguration fieldbpfConnectTimeLoadBalancingEnabled (YAML) BPFConnectTimeLoadBalancingEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)none

BPFConntrackCleanupMode (config file) / bpfConntrackMode (YAML)

Controls how BPF conntrack entries are cleaned up. Auto will use a BPF program if supported, falling back to userspace if not. Userspace will always use the userspace cleanup code. BPFProgram will always use the BPF program (failing if not supported).

/To be deprecated in future versions as conntrack map type changed to lru_hash and userspace cleanup is the only mode that is supported.

Detail
Environment variableFELIX_BPFConntrackCleanupMode
Encoding (env var/config file)One of: <code>Auto</code>, <code>BPFProgram</code>, <code>Userspace</code> (case insensitive)
Default value (above encoding)Auto
FelixConfiguration fieldbpfConntrackMode (YAML) BPFConntrackCleanupMode (Go API)
FelixConfiguration schemaOne of: <code>"Auto"</code>, <code>"BPFProgram"</code>, <code>"Userspace"</code>.
Default value (YAML)Auto

BPFConntrackLogLevel (config file) / bpfConntrackLogLevel (YAML)

Controls the log level of the BPF conntrack cleanup program, which runs periodically to clean up expired BPF conntrack entries. .

Detail
Environment variableFELIX_BPFConntrackLogLevel
Encoding (env var/config file)One of: <code>debug</code>, <code>off</code> (case insensitive)
Default value (above encoding)off
FelixConfiguration fieldbpfConntrackLogLevel (YAML) BPFConntrackLogLevel (Go API)
FelixConfiguration schemaOne of: <code>"Debug"</code>, <code>"Off"</code>.
Default value (YAML)off
NotesRequired.

BPFConntrackTimeouts (config file) / bpfConntrackTimeouts (YAML)

BPFConntrackTimers overrides the default values for the specified conntrack timer if set. Each value can be either a duration or Auto to pick the value from a Linux conntrack timeout.

Configurable timers are: CreationGracePeriod, TCPSynSent, TCPEstablished, TCPFinsSeen, TCPResetSeen, UDPTimeout, GenericTimeout, ICMPTimeout.

Unset values are replaced by the default values with a warning log for incorrect values.

Detail
Environment variableFELIX_BPFConntrackTimeouts
Encoding (env var/config file)Comma-delimited list of key=value pairs
Default value (above encoding)CreationGracePeriod=10s,TCPSynSent=20s,TCPEstablished=1h,TCPFinsSeen=Auto,TCPResetSeen=40s,UDPTimeout=60s,GenericTimeout=10m,ICMPTimeout=5s
FelixConfiguration fieldbpfConntrackTimeouts (YAML) BPFConntrackTimeouts (Go API)
FelixConfiguration schemaobject
Default value (YAML)none

BPFDSROptoutCIDRs (config file) / bpfDSROptoutCIDRs (YAML)

A list of CIDRs which are excluded from DSR. That is, clients in those CIDRs will access service node ports as if BPFExternalServiceMode was set to Tunnel.

Detail
Environment variableFELIX_BPFDSROptoutCIDRs
Encoding (env var/config file)Comma-delimited list of CIDRs
Default value (above encoding)none
FelixConfiguration fieldbpfDSROptoutCIDRs (YAML) BPFDSROptoutCIDRs (Go API)
FelixConfiguration schemaList of CIDRs: <code>["<cidr>", ...]</code>.
Default value (YAML)none

BPFDataIfacePattern (config file) / bpfDataIfacePattern (YAML)

A regular expression that controls which interfaces Felix should attach BPF programs to in order to catch traffic to/from the network. This needs to match the interfaces that Calico workload traffic flows over as well as any interfaces that handle incoming traffic to nodeports and services from outside the cluster. It should not match the workload interfaces (usually named cali...) or any other special device managed by Calico itself (e.g., tunnels).

Detail
Environment variableFELIX_BPFDataIfacePattern
Encoding (env var/config file)Regular expression
Default value (above encoding)^((en|wl|ww|sl|ib)[Popsx].*|(eth|wlan|wwan|bond).*)
FelixConfiguration fieldbpfDataIfacePattern (YAML) BPFDataIfacePattern (Go API)
FelixConfiguration schemaString.
Default value (YAML)^((en|wl|ww|sl|ib)[Popsx].*|(eth|wlan|wwan|bond).*)

BPFDisableGROForIfaces (config file) / bpfDisableGROForIfaces (YAML)

A regular expression that controls which interfaces Felix should disable the Generic Receive Offload [GRO] option. It should not match the workload interfaces (usually named cali...).

Detail
Environment variableFELIX_BPFDisableGROForIfaces
Encoding (env var/config file)Regular expression
Default value (above encoding)none
FelixConfiguration fieldbpfDisableGROForIfaces (YAML) BPFDisableGROForIfaces (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

BPFDisableUnprivileged (config file) / bpfDisableUnprivileged (YAML)

If enabled, Felix sets the kernel.unprivileged_bpf_disabled sysctl to disable unprivileged use of BPF. This ensures that unprivileged users cannot access Calico's BPF maps and cannot insert their own BPF programs to interfere with Calico's.

Detail
Environment variableFELIX_BPFDisableUnprivileged
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldbpfDisableUnprivileged (YAML) BPFDisableUnprivileged (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

BPFEnabled (config file) / bpfEnabled (YAML)

If enabled Felix will use the BPF dataplane.

Detail
Environment variableFELIX_BPFEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldbpfEnabled (YAML) BPFEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

BPFEnforceRPF (config file) / bpfEnforceRPF (YAML)

Enforce strict RPF on all host interfaces with BPF programs regardless of what is the per-interfaces or global setting. Possible values are Disabled, Strict or Loose.

Detail
Environment variableFELIX_BPFEnforceRPF
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Loose</code>, <code>Strict</code> (case insensitive)
Default value (above encoding)Loose
FelixConfiguration fieldbpfEnforceRPF (YAML) BPFEnforceRPF (Go API)
FelixConfiguration schemaOne of: <code>Disabled</code>, <code>Loose</code>, <code>Strict</code>.
Default value (YAML)Loose
NotesRequired.

BPFExcludeCIDRsFromNAT (config file) / bpfExcludeCIDRsFromNAT (YAML)

A list of CIDRs that are to be excluded from NAT resolution so that host can handle them. A typical usecase is node local DNS cache.

Detail
Environment variableFELIX_BPFExcludeCIDRsFromNAT
Encoding (env var/config file)Comma-delimited list of CIDRs
Default value (above encoding)none
FelixConfiguration fieldbpfExcludeCIDRsFromNAT (YAML) BPFExcludeCIDRsFromNAT (Go API)
FelixConfiguration schemaList of CIDRs: <code>["<cidr>", ...]</code>.
Default value (YAML)none

BPFExportBufferSizeMB (config file) / bpfExportBufferSizeMB (YAML)

In BPF mode, controls the buffer size used for sending BPF events to felix.

Detail
Environment variableFELIX_BPFExportBufferSizeMB
Encoding (env var/config file)Integer
Default value (above encoding)1
FelixConfiguration fieldbpfExportBufferSizeMB (YAML) BPFExportBufferSizeMB (Go API)
FelixConfiguration schemaInteger
Default value (YAML)1
NotesRequired.

BPFExtToServiceConnmark (config file) / bpfExtToServiceConnmark (YAML)

In BPF mode, controls a 32bit mark that is set on connections from an external client to a local service. This mark allows us to control how packets of that connection are routed within the host and how is routing interpreted by RPF check.

Detail
Environment variableFELIX_BPFExtToServiceConnmark
Encoding (env var/config file)Integer
Default value (above encoding)0
FelixConfiguration fieldbpfExtToServiceConnmark (YAML) BPFExtToServiceConnmark (Go API)
FelixConfiguration schemaInteger
Default value (YAML)0

BPFExternalServiceMode (config file) / bpfExternalServiceMode (YAML)

In BPF mode, controls how connections from outside the cluster to services (node ports and cluster IPs) are forwarded to remote workloads. If set to "Tunnel" then both request and response traffic is tunneled to the remote node. If set to "DSR", the request traffic is tunneled but the response traffic is sent directly from the remote node. In "DSR" mode, the remote node appears to use the IP of the ingress node; this requires a permissive L2 network.

Detail
Environment variableFELIX_BPFExternalServiceMode
Encoding (env var/config file)One of: <code>dsr</code>, <code>tunnel</code> (case insensitive)
Default value (above encoding)tunnel
FelixConfiguration fieldbpfExternalServiceMode (YAML) BPFExternalServiceMode (Go API)
FelixConfiguration schemaOne of: <code>DSR</code>, <code>Tunnel</code>.
Default value (YAML)Tunnel
NotesRequired.

BPFForceTrackPacketsFromIfaces (config file) / bpfForceTrackPacketsFromIfaces (YAML)

In BPF mode, forces traffic from these interfaces to skip Calico's iptables NOTRACK rule, allowing traffic from those interfaces to be tracked by Linux conntrack. Should only be used for interfaces that are not used for the Calico fabric. For example, a docker bridge device for non-Calico-networked containers.

Detail
Environment variableFELIX_BPFForceTrackPacketsFromIfaces
Encoding (env var/config file)Comma-delimited list of strings, each matching the regex <code>^[a-zA-Z0-9:._+-]{1,15}$</code>
Default value (above encoding)docker+
FelixConfiguration fieldbpfForceTrackPacketsFromIfaces (YAML) BPFForceTrackPacketsFromIfaces (Go API)
FelixConfiguration schemaList of interface names (may use <code>+</code> as a wildcard: <code>["<name>", ...]</code>.
Default value (YAML)["docker+"]

BPFHostConntrackBypass (config file) / bpfHostConntrackBypass (YAML)

Controls whether to bypass Linux conntrack in BPF mode for workloads and services.

Detail
Environment variableFELIX_BPFHostConntrackBypass
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldbpfHostConntrackBypass (YAML) BPFHostConntrackBypass (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

BPFHostNetworkedNATWithoutCTLB (config file) / bpfHostNetworkedNATWithoutCTLB (YAML)

When in BPF mode, controls whether Felix does a NAT without CTLB. This along with BPFConnectTimeLoadBalancing determines the CTLB behavior.

Detail
Environment variableFELIX_BPFHostNetworkedNATWithoutCTLB
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Enabled
FelixConfiguration fieldbpfHostNetworkedNATWithoutCTLB (YAML) BPFHostNetworkedNATWithoutCTLB (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Enabled
NotesRequired.

BPFJITHardening (config file) / bpfJITHardening (YAML)

Controls BPF JIT hardening. When set to "Auto", Felix will set JIT hardening to 1 if it detects the current value is 2 (strict mode that hurts performance). When set to "Strict", Felix will not modify the JIT hardening setting.

Detail
Environment variableFELIX_BPFJITHardening
Encoding (env var/config file)One of: <code>Auto</code>, <code>Strict</code> (case insensitive)
Default value (above encoding)Auto
FelixConfiguration fieldbpfJITHardening (YAML) BPFJITHardening (Go API)
FelixConfiguration schemastring
Default value (YAML)Auto
NotesRequired.

BPFKubeProxyHealthzPort (config file) / bpfKubeProxyHealthzPort (YAML)

In BPF mode, controls the port that Felix's embedded kube-proxy health check server binds to. The health check server is used by external load balancers to determine if this node should receive traffic. Set to 0 to disable the health check server.

Detail
Environment variableFELIX_BPFKubeProxyHealthzPort
Encoding (env var/config file)Integer
Default value (above encoding)10256
FelixConfiguration fieldbpfKubeProxyHealthzPort (YAML) BPFKubeProxyHealthzPort (Go API)
FelixConfiguration schemaInteger
Default value (YAML)10256

BPFKubeProxyIptablesCleanupEnabled (config file) / bpfKubeProxyIptablesCleanupEnabled (YAML)

If enabled in BPF mode, Felix will proactively clean up the upstream Kubernetes kube-proxy's iptables chains. Should only be enabled if kube-proxy is not running.

Detail
Environment variableFELIX_BPFKubeProxyIptablesCleanupEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldbpfKubeProxyIptablesCleanupEnabled (YAML) BPFKubeProxyIptablesCleanupEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

BPFKubeProxyMinSyncPeriod (config file) / bpfKubeProxyMinSyncPeriod (YAML)

In BPF mode, controls the minimum time between updates to the dataplane for Felix's embedded kube-proxy. Lower values give reduced set-up latency. Higher values reduce Felix CPU usage by batching up more work.

Detail
Environment variableFELIX_BPFKubeProxyMinSyncPeriod
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)1 (1s)
FelixConfiguration fieldbpfKubeProxyMinSyncPeriod (YAML) BPFKubeProxyMinSyncPeriod (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)1s

BPFL3IfacePattern (config file) / bpfL3IfacePattern (YAML)

A regular expression that allows to list tunnel devices like wireguard or vxlan (i.e., L3 devices) in addition to BPFDataIfacePattern. That is, tunnel interfaces not created by Calico, that Calico workload traffic flows over as well as any interfaces that handle incoming traffic to nodeports and services from outside the cluster.

Detail
Environment variableFELIX_BPFL3IfacePattern
Encoding (env var/config file)Regular expression
Default value (above encoding)none
FelixConfiguration fieldbpfL3IfacePattern (YAML) BPFL3IfacePattern (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

BPFLogFilters (config file) / bpfLogFilters (YAML)

A map of key=values where the value is a pcap filter expression and the key is an interface name with 'all' denoting all interfaces, 'weps' all workload endpoints and 'heps' all host endpoints.

When specified as an env var, it accepts a comma-separated list of key=values.

Detail
Environment variableFELIX_BPFLogFilters
Encoding (env var/config file)Comma-delimited list of key=value pairs
Default value (above encoding)none
FelixConfiguration fieldbpfLogFilters (YAML) BPFLogFilters (Go API)
FelixConfiguration schemaobject
Default value (YAML)none

BPFLogLevel (config file) / bpfLogLevel (YAML)

Controls the log level of the BPF programs when in BPF dataplane mode. One of "Off", "Info", or "Debug". The logs are emitted to the BPF trace pipe, accessible with the command tc exec bpf debug. .

Detail
Environment variableFELIX_BPFLogLevel
Encoding (env var/config file)One of: <code>debug</code>, <code>info</code>, <code>off</code> (case insensitive)
Default value (above encoding)off
FelixConfiguration fieldbpfLogLevel (YAML) BPFLogLevel (Go API)
FelixConfiguration schemaOne of: <code>Debug</code>, <code>Info</code>, <code>Off</code>.
Default value (YAML)Off
NotesRequired.

BPFMaglevMaxEndpointsPerService (config file) / bpfMaglevMaxEndpointsPerService (YAML)

The maximum number of endpoints expected to be part of a single Maglev-enabled service.

Influences the size of the per-service Maglev lookup-tables generated by Felix and thus the amount of memory reserved.

Detail
Environment variableFELIX_BPFMaglevMaxEndpointsPerService
Encoding (env var/config file)Integer: [1,3000]
Default value (above encoding)100
FelixConfiguration fieldbpfMaglevMaxEndpointsPerService (YAML) BPFMaglevMaxEndpointsPerService (Go API)
FelixConfiguration schemaInteger: [1,3000]
Default value (YAML)100

BPFMaglevMaxServices (config file) / bpfMaglevMaxServices (YAML)

The maximum number of expected Maglev-enabled services that Felix will allocate lookup-tables for.

Detail
Environment variableFELIX_BPFMaglevMaxServices
Encoding (env var/config file)Integer: [1,3000]
Default value (above encoding)100
FelixConfiguration fieldbpfMaglevMaxServices (YAML) BPFMaglevMaxServices (Go API)
FelixConfiguration schemaInteger: [1,3000]
Default value (YAML)100

BPFMapSizeConntrack (config file) / bpfMapSizeConntrack (YAML)

Sets the size for the conntrack map. This map must be large enough to hold an entry for each active connection. Warning: changing the size of the conntrack map can cause disruption.

Detail
Environment variableFELIX_BPFMapSizeConntrack
Encoding (env var/config file)Integer
Default value (above encoding)512000
FelixConfiguration fieldbpfMapSizeConntrack (YAML) BPFMapSizeConntrack (Go API)
FelixConfiguration schemaInteger
Default value (YAML)512000
NotesRequired.

BPFMapSizeConntrackCleanupQueue (config file) / bpfMapSizeConntrackCleanupQueue (YAML)

Sets the size for the map used to hold NAT conntrack entries that are queued for cleanup. This should be big enough to hold all the NAT entries that expire within one cleanup interval.

Detail
Environment variableFELIX_BPFMapSizeConntrackCleanupQueue
Encoding (env var/config file)Integer
Default value (above encoding)100000
FelixConfiguration fieldbpfMapSizeConntrackCleanupQueue (YAML) BPFMapSizeConntrackCleanupQueue (Go API)
FelixConfiguration schemaInteger
Default value (YAML)100000
NotesRequired.

BPFMapSizeConntrackScaling (config file) / bpfMapSizeConntrackScaling (YAML)

Controls whether and how we scale the conntrack map size depending on its usage. 'Disabled' make the size stay at the default or whatever is set by BPFMapSizeConntrack*. 'DoubleIfFull' doubles the size when the map is pretty much full even after cleanups.

Detail
Environment variableFELIX_BPFMapSizeConntrackScaling
Encoding (env var/config file)One of: <code>Disabled</code>, <code>DoubleIfFull</code> (case insensitive)
Default value (above encoding)DoubleIfFull
FelixConfiguration fieldbpfMapSizeConntrackScaling (YAML) BPFMapSizeConntrackScaling (Go API)
FelixConfiguration schemaOne of: <code>Disabled</code>, <code>DoubleIfFull</code>.
Default value (YAML)DoubleIfFull
NotesRequired.

BPFMapSizeIPSets (config file) / bpfMapSizeIPSets (YAML)

Sets the size for ipsets map. The IP sets map must be large enough to hold an entry for each endpoint matched by every selector in the source/destination matches in network policy. Selectors such as "all()" can result in large numbers of entries (one entry per endpoint in that case).

Detail
Environment variableFELIX_BPFMapSizeIPSets
Encoding (env var/config file)Integer
Default value (above encoding)1048576
FelixConfiguration fieldbpfMapSizeIPSets (YAML) BPFMapSizeIPSets (Go API)
FelixConfiguration schemaInteger
Default value (YAML)1048576
NotesRequired.

BPFMapSizeIfState (config file) / bpfMapSizeIfState (YAML)

Sets the size for ifstate map. The ifstate map must be large enough to hold an entry for each device (host + workloads) on a host.

Detail
Environment variableFELIX_BPFMapSizeIfState
Encoding (env var/config file)Integer
Default value (above encoding)1000
FelixConfiguration fieldbpfMapSizeIfState (YAML) BPFMapSizeIfState (Go API)
FelixConfiguration schemaInteger
Default value (YAML)1000
NotesRequired.

BPFMapSizeNATAffinity (config file) / bpfMapSizeNATAffinity (YAML)

Sets the size of the BPF map that stores the affinity of a connection (for services that enable that feature.

Detail
Environment variableFELIX_BPFMapSizeNATAffinity
Encoding (env var/config file)Integer
Default value (above encoding)65536
FelixConfiguration fieldbpfMapSizeNATAffinity (YAML) BPFMapSizeNATAffinity (Go API)
FelixConfiguration schemaInteger
Default value (YAML)65536
NotesRequired.

BPFMapSizeNATBackend (config file) / bpfMapSizeNATBackend (YAML)

Sets the size for NAT back end map. This is the total number of endpoints. This is mostly more than the size of the number of services.

Detail
Environment variableFELIX_BPFMapSizeNATBackend
Encoding (env var/config file)Integer
Default value (above encoding)262144
FelixConfiguration fieldbpfMapSizeNATBackend (YAML) BPFMapSizeNATBackend (Go API)
FelixConfiguration schemaInteger
Default value (YAML)262144
NotesRequired.

BPFMapSizeNATFrontend (config file) / bpfMapSizeNATFrontend (YAML)

Sets the size for NAT front end map. FrontendMap should be large enough to hold an entry for each nodeport, external IP and each port in each service.

Detail
Environment variableFELIX_BPFMapSizeNATFrontend
Encoding (env var/config file)Integer
Default value (above encoding)65536
FelixConfiguration fieldbpfMapSizeNATFrontend (YAML) BPFMapSizeNATFrontend (Go API)
FelixConfiguration schemaInteger
Default value (YAML)65536
NotesRequired.

BPFMapSizePerCPUConntrack (config file) / bpfMapSizePerCpuConntrack (YAML)

Determines the size of conntrack map based on the number of CPUs. If set to a non-zero value, overrides BPFMapSizeConntrack with BPFMapSizePerCPUConntrack * (Number of CPUs). This map must be large enough to hold an entry for each active connection. Warning: changing the size of the conntrack map can cause disruption.

Detail
Environment variableFELIX_BPFMapSizePerCPUConntrack
Encoding (env var/config file)Integer
Default value (above encoding)0
FelixConfiguration fieldbpfMapSizePerCpuConntrack (YAML) BPFMapSizePerCPUConntrack (Go API)
FelixConfiguration schemaInteger
Default value (YAML)0

BPFMapSizeRoute (config file) / bpfMapSizeRoute (YAML)

Sets the size for the routes map. The routes map should be large enough to hold one entry per workload and a handful of entries per host (enough to cover its own IPs and tunnel IPs).

Detail
Environment variableFELIX_BPFMapSizeRoute
Encoding (env var/config file)Integer
Default value (above encoding)262144
FelixConfiguration fieldbpfMapSizeRoute (YAML) BPFMapSizeRoute (Go API)
FelixConfiguration schemaInteger
Default value (YAML)262144
NotesRequired.

BPFPSNATPorts (config file) / bpfPSNATPorts (YAML)

Sets the range from which we randomly pick a port if there is a source port collision. This should be within the ephemeral range as defined by RFC 6056 (1024–65535) and preferably outside the ephemeral ranges used by common operating systems. Linux uses 32768–60999, while others mostly use the IANA defined range 49152–65535. It is not necessarily a problem if this range overlaps with the operating systems. Both ends of the range are inclusive.

Detail
Environment variableFELIX_BPFPSNATPorts
Encoding (env var/config file)Port range: either a single number in [0,65535] or a range of numbers <code>n:m</code>
Default value (above encoding)20000:29999
FelixConfiguration fieldbpfPSNATPorts (YAML) BPFPSNATPorts (Go API)
FelixConfiguration schemaPort range: either an integer in [0,65535] or a string, representing a range, in format <code>n:m</code>
Default value (YAML)20000:29999

BPFPolicyDebugEnabled (config file) / bpfPolicyDebugEnabled (YAML)

When true, Felix records detailed information about the BPF policy programs, which can be examined with the calico-bpf command-line tool.

Detail
Environment variableFELIX_BPFPolicyDebugEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldbpfPolicyDebugEnabled (YAML) BPFPolicyDebugEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

BPFProfiling (config file) / bpfProfiling (YAML)

Controls profiling of BPF programs. At the monent, it can be Disabled or Enabled.

Detail
Environment variableFELIX_BPFProfiling
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Disabled
FelixConfiguration fieldbpfProfiling (YAML) BPFProfiling (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Disabled
NotesRequired.

BPFRedirectToPeer (config file) / bpfRedirectToPeer (YAML)

Controls whether traffic may be forwarded directly to the peer side of a workload’s device. Note that the legacy "L2Only" option is now deprecated and if set it is treated like "Enabled. Setting this option to "Enabled" allows direct redirection (including from L3 host devices such as IPIP tunnels or WireGuard), which can improve redirection performance but causes the redirected packets to bypass the host‑side ingress path. As a result, packet‑capture tools on the host side of the workload device (for example, tcpdump) will not see that traffic.

Detail
Environment variableFELIX_BPFRedirectToPeer
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code>, <code>L2Only</code> (case insensitive)
Default value (above encoding)Enabled
FelixConfiguration fieldbpfRedirectToPeer (YAML) BPFRedirectToPeer (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Enabled
NotesRequired.

<a id="dataplane-windows">Dataplane: Windows

WindowsManageFirewallRules (config file) / windowsManageFirewallRules (YAML)

Configures whether or not Felix will program Windows Firewall rules (to allow inbound access to its own metrics ports).

Detail
Environment variableFELIX_WindowsManageFirewallRules
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Disabled
FelixConfiguration fieldwindowsManageFirewallRules (YAML) WindowsManageFirewallRules (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Disabled

<a id="dataplane-openstack-support">Dataplane: OpenStack support

EndpointReportingDelaySecs (config file) / endpointReportingDelay (YAML)

The delay before Felix reports endpoint status to the datastore. This is only used by the OpenStack integration.

Detail
Environment variableFELIX_EndpointReportingDelaySecs
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)1 (1s)
FelixConfiguration fieldendpointReportingDelay (YAML) EndpointReportingDelay (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)1s

EndpointReportingEnabled (config file) / endpointReportingEnabled (YAML)

Controls whether Felix reports endpoint status to the datastore. This is only used by the OpenStack integration.

Detail
Environment variableFELIX_EndpointReportingEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldendpointReportingEnabled (YAML) EndpointReportingEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

MetadataAddr (config file) / metadataAddr (YAML)

The IP address or domain name of the server that can answer VM queries for cloud-init metadata. In OpenStack, this corresponds to the machine running nova-api (or in Ubuntu, nova-api-metadata). A value of none (case-insensitive) means that Felix should not set up any NAT rule for the metadata path.

Detail
Environment variableFELIX_MetadataAddr
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9_.-]+$</code>
Default value (above encoding)127.0.0.1
FelixConfiguration fieldmetadataAddr (YAML) MetadataAddr (Go API)
FelixConfiguration schemaString.
Default value (YAML)127.0.0.1
NotesFelix will exit if the value is invalid.

MetadataPort (config file) / metadataPort (YAML)

The port of the metadata server. This, combined with global.MetadataAddr (if not 'None'), is used to set up a NAT rule, from 169.254.169.254:80 to MetadataAddr:MetadataPort. In most cases this should not need to be changed .

Detail
Environment variableFELIX_MetadataPort
Encoding (env var/config file)Integer: [0,65535]
Default value (above encoding)8775
FelixConfiguration fieldmetadataPort (YAML) MetadataPort (Go API)
FelixConfiguration schemaInteger: [0,65535]
Default value (YAML)8775
NotesFelix will exit if the value is invalid.

OpenstackRegion (config file) / openstackRegion (YAML)

The name of the region that a particular Felix belongs to. In a multi-region Calico/OpenStack deployment, this must be configured somehow for each Felix (here in the datamodel, or in felix.cfg or the environment on each compute node), and must match the [calico] openstack_region value configured in neutron.conf on each node.

Detail
Environment variableFELIX_OpenstackRegion
Encoding (env var/config file)OpenStack region name (must be a valid DNS label)
Default value (above encoding)none
FelixConfiguration fieldopenstackRegion (YAML) OpenstackRegion (Go API)
FelixConfiguration schemaString.
Default value (YAML)none
NotesFelix will exit if the value is invalid.

ReportingIntervalSecs (config file) / reportingInterval (YAML)

The interval at which Felix reports its status into the datastore or 0 to disable. Must be non-zero in OpenStack deployments.

Detail
Environment variableFELIX_ReportingIntervalSecs
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)30 (30s)
FelixConfiguration fieldreportingInterval (YAML) ReportingInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)30s

ReportingTTLSecs (config file) / reportingTTL (YAML)

The time-to-live setting for process-wide status reports.

Detail
Environment variableFELIX_ReportingTTLSecs
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)90 (1m30s)
FelixConfiguration fieldreportingTTL (YAML) ReportingTTL (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)1m30s

<a id="dataplane-xdp-acceleration-for-iptables-dataplane">Dataplane: XDP acceleration for iptables dataplane

GenericXDPEnabled (config file) / genericXDPEnabled (YAML)

Enables Generic XDP so network cards that don't support XDP offload or driver modes can use XDP. This is not recommended since it doesn't provide better performance than iptables.

Detail
Environment variableFELIX_GenericXDPEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldgenericXDPEnabled (YAML) GenericXDPEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

XDPEnabled (config file) / xdpEnabled (YAML)

Enables XDP acceleration for suitable untracked incoming deny rules.

Detail
Environment variableFELIX_XDPEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldxdpEnabled (YAML) XDPEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

XDPRefreshInterval (config file) / xdpRefreshInterval (YAML)

The period at which Felix re-checks all XDP state to ensure that no other process has accidentally broken Calico's BPF maps or attached programs. Set to 0 to disable XDP refresh.

Detail
Environment variableFELIX_XDPRefreshInterval
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)90 (1m30s)
FelixConfiguration fieldxdpRefreshInterval (YAML) XDPRefreshInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)1m30s

<a id="overlay-vxlan-overlay">Overlay: VXLAN overlay

VXLANEnabled (config file) / vxlanEnabled (YAML)

Overrides whether Felix should create the VXLAN tunnel device for IPv4 VXLAN networking. Optional as Felix determines this based on the existing IP pools.

Detail
Environment variableFELIX_VXLANEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)none
FelixConfiguration fieldvxlanEnabled (YAML) VXLANEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)none

VXLANMTU (config file) / vxlanMTU (YAML)

The MTU to set on the IPv4 VXLAN tunnel device. Optional as Felix auto-detects the MTU based on the MTU of the host's interfaces.

Detail
Environment variableFELIX_VXLANMTU
Encoding (env var/config file)Integer
Default value (above encoding)0
FelixConfiguration fieldvxlanMTU (YAML) VXLANMTU (Go API)
FelixConfiguration schemaInteger
Default value (YAML)0

VXLANMTUV6 (config file) / vxlanMTUV6 (YAML)

The MTU to set on the IPv6 VXLAN tunnel device. Optional as Felix auto-detects the MTU based on the MTU of the host's interfaces.

Detail
Environment variableFELIX_VXLANMTUV6
Encoding (env var/config file)Integer
Default value (above encoding)0
FelixConfiguration fieldvxlanMTUV6 (YAML) VXLANMTUV6 (Go API)
FelixConfiguration schemaInteger
Default value (YAML)0

VXLANPort (config file) / vxlanPort (YAML)

The UDP port number to use for VXLAN traffic.

Detail
Environment variableFELIX_VXLANPort
Encoding (env var/config file)Integer
Default value (above encoding)4789
FelixConfiguration fieldvxlanPort (YAML) VXLANPort (Go API)
FelixConfiguration schemaInteger
Default value (YAML)4789

VXLANVNI (config file) / vxlanVNI (YAML)

The VXLAN VNI to use for VXLAN traffic. You may need to change this if the default value is in use on your system.

Detail
Environment variableFELIX_VXLANVNI
Encoding (env var/config file)Integer
Default value (above encoding)4096
FelixConfiguration fieldvxlanVNI (YAML) VXLANVNI (Go API)
FelixConfiguration schemaInteger
Default value (YAML)4096

<a id="overlay-ip-in-ip">Overlay: IP-in-IP

IpInIpEnabled (config file) / ipipEnabled (YAML)

Overrides whether Felix should configure an IPIP interface on the host. Optional as Felix determines this based on the existing IP pools.

Detail
Environment variableFELIX_IpInIpEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)none
FelixConfiguration fieldipipEnabled (YAML) IPIPEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)none

IpInIpMtu (config file) / ipipMTU (YAML)

Controls the MTU to set on the IPIP tunnel device. Optional as Felix auto-detects the MTU based on the MTU of the host's interfaces.

Detail
Environment variableFELIX_IpInIpMtu
Encoding (env var/config file)Integer
Default value (above encoding)0
FelixConfiguration fieldipipMTU (YAML) IPIPMTU (Go API)
FelixConfiguration schemaInteger
Default value (YAML)0

<a id="overlay-wireguard">Overlay: Wireguard

WireguardEnabled (config file) / wireguardEnabled (YAML)

Controls whether Wireguard is enabled for IPv4 (encapsulating IPv4 traffic over an IPv4 underlay network).

Detail
Environment variableFELIX_WireguardEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldwireguardEnabled (YAML) WireguardEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

WireguardEnabledV6 (config file) / wireguardEnabledV6 (YAML)

Controls whether Wireguard is enabled for IPv6 (encapsulating IPv6 traffic over an IPv6 underlay network).

Detail
Environment variableFELIX_WireguardEnabledV6
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldwireguardEnabledV6 (YAML) WireguardEnabledV6 (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

WireguardHostEncryptionEnabled (config file) / wireguardHostEncryptionEnabled (YAML)

Controls whether Wireguard host-to-host encryption is enabled.

Detail
Environment variableFELIX_WireguardHostEncryptionEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldwireguardHostEncryptionEnabled (YAML) WireguardHostEncryptionEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

WireguardInterfaceName (config file) / wireguardInterfaceName (YAML)

Specifies the name to use for the IPv4 Wireguard interface.

Detail
Environment variableFELIX_WireguardInterfaceName
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9:._+-]{1,15}$</code>
Default value (above encoding)wireguard.cali
FelixConfiguration fieldwireguardInterfaceName (YAML) WireguardInterfaceName (Go API)
FelixConfiguration schemaString.
Default value (YAML)wireguard.cali
NotesRequired.

WireguardInterfaceNameV6 (config file) / wireguardInterfaceNameV6 (YAML)

Specifies the name to use for the IPv6 Wireguard interface.

Detail
Environment variableFELIX_WireguardInterfaceNameV6
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9:._+-]{1,15}$</code>
Default value (above encoding)wg-v6.cali
FelixConfiguration fieldwireguardInterfaceNameV6 (YAML) WireguardInterfaceNameV6 (Go API)
FelixConfiguration schemaString.
Default value (YAML)wg-v6.cali
NotesRequired.

WireguardListeningPort (config file) / wireguardListeningPort (YAML)

Controls the listening port used by IPv4 Wireguard.

Detail
Environment variableFELIX_WireguardListeningPort
Encoding (env var/config file)Integer
Default value (above encoding)51820
FelixConfiguration fieldwireguardListeningPort (YAML) WireguardListeningPort (Go API)
FelixConfiguration schemaInteger
Default value (YAML)51820

WireguardListeningPortV6 (config file) / wireguardListeningPortV6 (YAML)

Controls the listening port used by IPv6 Wireguard.

Detail
Environment variableFELIX_WireguardListeningPortV6
Encoding (env var/config file)Integer
Default value (above encoding)51821
FelixConfiguration fieldwireguardListeningPortV6 (YAML) WireguardListeningPortV6 (Go API)
FelixConfiguration schemaInteger
Default value (YAML)51821

WireguardMTU (config file) / wireguardMTU (YAML)

Controls the MTU on the IPv4 Wireguard interface. See Configuring MTU.

Detail
Environment variableFELIX_WireguardMTU
Encoding (env var/config file)Integer
Default value (above encoding)0
FelixConfiguration fieldwireguardMTU (YAML) WireguardMTU (Go API)
FelixConfiguration schemaInteger
Default value (YAML)0

WireguardMTUV6 (config file) / wireguardMTUV6 (YAML)

Controls the MTU on the IPv6 Wireguard interface. See Configuring MTU.

Detail
Environment variableFELIX_WireguardMTUV6
Encoding (env var/config file)Integer
Default value (above encoding)0
FelixConfiguration fieldwireguardMTUV6 (YAML) WireguardMTUV6 (Go API)
FelixConfiguration schemaInteger
Default value (YAML)0

WireguardPersistentKeepAlive (config file) / wireguardKeepAlive (YAML)

Controls Wireguard PersistentKeepalive option. Set 0 to disable.

Detail
Environment variableFELIX_WireguardPersistentKeepAlive
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)0 (0s)
FelixConfiguration fieldwireguardKeepAlive (YAML) WireguardPersistentKeepAlive (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)0s

WireguardRoutingRulePriority (config file) / wireguardRoutingRulePriority (YAML)

Controls the priority value to use for the Wireguard routing rule.

Detail
Environment variableFELIX_WireguardRoutingRulePriority
Encoding (env var/config file)Integer
Default value (above encoding)99
FelixConfiguration fieldwireguardRoutingRulePriority (YAML) WireguardRoutingRulePriority (Go API)
FelixConfiguration schemaInteger
Default value (YAML)99

WireguardThreadingEnabled (config file) / wireguardThreadingEnabled (YAML)

Controls whether Wireguard has Threaded NAPI enabled. This increases the maximum number of packets a Wireguard interface can process. Consider threaded NAPI only if you have high packets per second workloads that are causing dropping packets due to a saturated softirq CPU core. There is a known issue with this setting that may cause NAPI to get stuck holding the global rtnl_mutex when a peer is removed. Workaround: Make sure your Linux kernel includes this patch to unwedge NAPI.

Detail
Environment variableFELIX_WireguardThreadingEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldwireguardThreadingEnabled (YAML) WireguardThreadingEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

<a id="flow-logs-file-reports">Flow logs: file reports

FlowLogsCollectorDebugTrace (config file) / flowLogsCollectorDebugTrace (YAML)

When FlowLogsCollectorDebugTrace is set to true, enables the logs in the collector to be printed in their entirety.

Detail
Environment variableFELIX_FlowLogsCollectorDebugTrace
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fieldflowLogsCollectorDebugTrace (YAML) FlowLogsCollectorDebugTrace (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

FlowLogsFlushInterval (config file) / flowLogsFlushInterval (YAML)

Configures the interval at which Felix exports flow logs.

Detail
Environment variableFELIX_FlowLogsFlushInterval
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)300 (5m0s)
FelixConfiguration fieldflowLogsFlushInterval (YAML) FlowLogsFlushInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)5m0s

FlowLogsGoldmaneServer (config file) / flowLogsGoldmaneServer (YAML)

FlowLogGoldmaneServer is the flow server endpoint to which flow data should be published.

Detail
Environment variableFELIX_FlowLogsGoldmaneServer
Encoding (env var/config file)String
Default value (above encoding)none
FelixConfiguration fieldflowLogsGoldmaneServer (YAML) FlowLogsGoldmaneServer (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

FlowLogsLocalReporter (config file) / flowLogsLocalReporter (YAML)

Configures local unix socket for reporting flow data from each node.

Detail
Environment variableFELIX_FlowLogsLocalReporter
Encoding (env var/config file)One of: <code>Disabled</code>, <code>Enabled</code> (case insensitive)
Default value (above encoding)Disabled
FelixConfiguration fieldflowLogsLocalReporter (YAML) FlowLogsLocalReporter (Go API)
FelixConfiguration schemaOne of: <code>"Disabled"</code>, <code>"Enabled"</code>.
Default value (YAML)Disabled

FlowLogsPolicyEvaluationMode (config file) / flowLogsPolicyEvaluationMode (YAML)

Continuous - Felix evaluates active flows on a regular basis to determine the rule traces in the flow logs. Any policy updates that impact a flow will be reflected in the pending_policies field, offering a near-real-time view of policy changes across flows. None - Felix stops evaluating pending traces.

Detail
Environment variableFELIX_FlowLogsPolicyEvaluationMode
Encoding (env var/config file)One of: <code>Continuous</code>, <code>None</code> (case insensitive)
Default value (above encoding)Continuous
FelixConfiguration fieldflowLogsPolicyEvaluationMode (YAML) FlowLogsPolicyEvaluationMode (Go API)
FelixConfiguration schemaOne of: <code>"Continuous"</code>, <code>"None"</code>.
Default value (YAML)Continuous

<a id="aws-integration">AWS integration

AWSSrcDstCheck (config file) / awsSrcDstCheck (YAML)

Controls whether Felix will try to change the "source/dest check" setting on the EC2 instance on which it is running. A value of "Disable" will try to disable the source/dest check. Disabling the check allows for sending workload traffic without encapsulation within the same AWS subnet.

Detail
Environment variableFELIX_AWSSrcDstCheck
Encoding (env var/config file)One of: <code>Disable</code>, <code>DoNothing</code>, <code>Enable</code> (case insensitive)
Default value (above encoding)DoNothing
FelixConfiguration fieldawsSrcDstCheck (YAML) AWSSrcDstCheck (Go API)
FelixConfiguration schemaOne of: <code>"Disable"</code>, <code>"DoNothing"</code>, <code>"Enable"</code>.
Default value (YAML)DoNothing
NotesRequired.

<a id="debugtest-only-generally-unsupported">Debug/test-only (generally unsupported)

DebugBPFCgroupV2 (config file / env var only)

Controls the cgroup v2 path that we apply the connect-time load balancer to. Most distros are configured for cgroup v1, which prevents all but the root cgroup v2 from working so this is only useful for development right now.

Detail
Environment variableFELIX_DebugBPFCgroupV2
Encoding (env var/config file)String
Default value (above encoding)none
NotesConfig file / env var only.

DebugCPUProfilePath (config file / env var only)

Unsupported diagnostic setting, used when testing Felix. Not exposed in FelixConfiguration.

Detail
Environment variableFELIX_DebugCPUProfilePath
Encoding (env var/config file)Path to file
Default value (above encoding)/tmp/felix-cpu-<timestamp>.pprof

DebugDisableLogDropping (config file) / debugDisableLogDropping (YAML)

Disables the dropping of log messages when the log buffer is full. This can significantly impact performance if log write-out is a bottleneck.

Detail
Environment variableFELIX_DebugDisableLogDropping
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false
FelixConfiguration fielddebugDisableLogDropping (YAML) DebugDisableLogDropping (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)false

DebugHost (config file) / debugHost (YAML)

The host IP or hostname to bind the debug port to. Only used if DebugPort is set.

Detail
Environment variableFELIX_DebugHost
Encoding (env var/config file)String matching regex <code>^[a-zA-Z0-9:._+-]{1,64}$</code>
Default value (above encoding)localhost
FelixConfiguration fielddebugHost (YAML) DebugHost (Go API)
FelixConfiguration schemaString.
Default value (YAML)localhost

DebugMemoryProfilePath (config file) / debugMemoryProfilePath (YAML)

The path to write the memory profile to when triggered by signal.

Detail
Environment variableFELIX_DebugMemoryProfilePath
Encoding (env var/config file)Path to file
Default value (above encoding)none
FelixConfiguration fielddebugMemoryProfilePath (YAML) DebugMemoryProfilePath (Go API)
FelixConfiguration schemaString.
Default value (YAML)none

DebugPanicAfter (config file / env var only)

Unsupported diagnostic setting, used when testing Felix. Not exposed in FelixConfiguration.

Detail
Environment variableFELIX_DebugPanicAfter
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)0 (0s)

DebugPort (config file) / debugPort (YAML)

If set, enables Felix's debug HTTP port, which allows memory and CPU profiles to be retrieved. The debug port is not secure, it should not be exposed to the internet.

Detail
Environment variableFELIX_DebugPort
Encoding (env var/config file)Integer: [0,65535]
Default value (above encoding)none
FelixConfiguration fielddebugPort (YAML) DebugPort (Go API)
FelixConfiguration schemaInteger: [0,65535]
Default value (YAML)none

DebugSimulateCalcGraphHangAfter (config file) / debugSimulateCalcGraphHangAfter (YAML)

Used to simulate a hang in the calculation graph after the specified duration. This is useful in tests of the watchdog system only!

Detail
Environment variableFELIX_DebugSimulateCalcGraphHangAfter
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)0 (0s)
FelixConfiguration fielddebugSimulateCalcGraphHangAfter (YAML) DebugSimulateCalcGraphHangAfter (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)0s

DebugSimulateDataRace (config file / env var only)

Unsupported diagnostic setting, used when testing Felix. Not exposed in FelixConfiguration.

Detail
Environment variableFELIX_DebugSimulateDataRace
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)false

DebugSimulateDataplaneApplyDelay (config file) / debugSimulateDataplaneApplyDelay (YAML)

Adds an artificial delay to every dataplane operation. This is useful for simulating a heavily loaded system for test purposes only.

Detail
Environment variableFELIX_DebugSimulateDataplaneApplyDelay
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)0 (0s)
FelixConfiguration fielddebugSimulateDataplaneApplyDelay (YAML) DebugSimulateDataplaneApplyDelay (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)0s

DebugSimulateDataplaneHangAfter (config file) / debugSimulateDataplaneHangAfter (YAML)

Used to simulate a hang in the dataplane after the specified duration. This is useful in tests of the watchdog system only!

Detail
Environment variableFELIX_DebugSimulateDataplaneHangAfter
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)0 (0s)
FelixConfiguration fielddebugSimulateDataplaneHangAfter (YAML) DebugSimulateDataplaneHangAfter (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)0s

<a id="usage-reporting">Usage reporting

UsageReportingEnabled (config file) / usageReportingEnabled (YAML)

Reports anonymous Calico version number and cluster size to projectcalico.org. Logs warnings returned by the usage server. For example, if a significant security vulnerability has been discovered in the version of Calico being used.

Detail
Environment variableFELIX_UsageReportingEnabled
Encoding (env var/config file)Boolean: <code>true</code>, <code>1</code>, <code>yes</code>, <code>y</code>, <code>t</code> accepted as True; <code>false</code>, <code>0</code>, <code>no</code>, <code>n</code>, <code>f</code> accepted (case insensitively) as False.
Default value (above encoding)true
FelixConfiguration fieldusageReportingEnabled (YAML) UsageReportingEnabled (Go API)
FelixConfiguration schemaBoolean.
Default value (YAML)true

UsageReportingInitialDelaySecs (config file) / usageReportingInitialDelay (YAML)

Controls the minimum delay before Felix makes a report.

Detail
Environment variableFELIX_UsageReportingInitialDelaySecs
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)300 (5m0s)
FelixConfiguration fieldusageReportingInitialDelay (YAML) UsageReportingInitialDelay (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)5m0s

UsageReportingIntervalSecs (config file) / usageReportingInterval (YAML)

Controls the interval at which Felix makes reports.

Detail
Environment variableFELIX_UsageReportingIntervalSecs
Encoding (env var/config file)Seconds (floating point)
Default value (above encoding)86400 (24h0m0s)
FelixConfiguration fieldusageReportingInterval (YAML) UsageReportingInterval (Go API)
FelixConfiguration schemaDuration string, for example <code>1m30s123ms</code> or <code>1h5m</code>.
Default value (YAML)24h0m0s