Skip to main content
Calico Enterprise 3.21 documentation

Felix configuration

A Felix configuration resource (FelixConfiguration) represents Felix configuration options for the cluster.

For kubectl commands, the following case-insensitive aliases may be used to specify the resource type on the CLI: felixconfiguration.projectcalico.org, felixconfigurations.projectcalico.org as well as abbreviations such as felixconfiguration.p and felixconfigurations.p.

See Configuring Felix for more details.

Sample YAML

apiVersion: projectcalico.org/v3
kind: FelixConfiguration
metadata:
name: default
spec:
ipv6Support: false
ipipMTU: 1400
chainInsertMode: Append

Felix configuration definition

Metadata

FieldDescriptionAccepted ValuesSchema
nameUnique name to describe this resource instance. Required.Alphanumeric string with optional ., _, or -.string
  • Calico Enterprise automatically creates a resource named default containing the global default configuration settings for Felix. You can use calicoctl to view and edit these settings
  • The resources with the name node.<nodename> contain the node-specific overrides, and will be applied to the node <nodename>. When deleting a node the FelixConfiguration resource associated with the node will also be deleted.

Spec

Datastore connection

Process: Feature detection/overrides

featureDetectOverride
AttributeValue
KeyfeatureDetectOverride
Description

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.

SchemaString matching the regular expression ^([a-zA-Z0-9-_]+=(true|false|),)*([a-zA-Z0-9-_]+=(true|false|))?$.
Defaultnone
featureGates
AttributeValue
KeyfeatureGates
Description

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.

SchemaString matching the regular expression ^([a-zA-Z0-9-_]+=([^=]+),)*([a-zA-Z0-9-_]+=([^=]+))?$.
Defaultnone

Process: Go runtime

goGCThreshold
AttributeValue
KeygoGCThreshold
Description

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.

SchemaInteger: [-1,263-1]
Default40
goMaxProcs
AttributeValue
KeygoMaxProcs
Description

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.

SchemaInteger: [-1,263-1]
Default-1
goMemoryLimitMB
AttributeValue
KeygoMemoryLimitMB
Description

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.

SchemaInteger: [-1,263-1]
Default-1

Process: Health port and timeouts

healthEnabled
AttributeValue
KeyhealthEnabled
Description

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

SchemaBoolean.
Defaultfalse
healthHost
AttributeValue
KeyhealthHost
Description

The host that the health server should bind to.

SchemaString.
Defaultlocalhost
healthPort
AttributeValue
KeyhealthPort
Description

The TCP port that the health server should bind to.

SchemaInteger: [0,65535]
Default9099
healthTimeoutOverrides
AttributeValue
KeyhealthTimeoutOverrides
Description

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.

SchemaList of health timeout overrides: [{name: "<name>", timeout: "<duration>"}, ...] where <duration> is in the Go duration format, for example 1m30s.
Defaultnone

Process: Logging

logDebugFilenameRegex
AttributeValue
KeylogDebugFilenameRegex
Description

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.

SchemaString.
Defaultnone
logDropActionOverride
AttributeValue
KeylogDropActionOverride
Description

Specifies whether or not to include the DropActionOverride in the logs when it is triggered.

SchemaBoolean.
Defaultfalse
logFilePath
AttributeValue
KeylogFilePath
Description

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

SchemaString.
Default/var/log/calico/felix.log
logPrefix
AttributeValue
KeylogPrefix
Description

The log prefix that Felix uses when rendering LOG rules.

SchemaString.
Defaultcalico-packet
logSeverityFile
AttributeValue
KeylogSeverityFile
Description

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

SchemaOne of: Debug, Error, Fatal, Info, Warning.
DefaultInfo
logSeverityScreen
AttributeValue
KeylogSeverityScreen
Description

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

SchemaOne of: Debug, Error, Fatal, Info, Warning.
DefaultInfo
logSeveritySys
AttributeValue
KeylogSeveritySys
Description

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

SchemaOne of: Debug, Error, Fatal, Info, Warning.
DefaultInfo

Process: Prometheus metrics

prometheusGoMetricsEnabled
AttributeValue
KeyprometheusGoMetricsEnabled
Description

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.

SchemaBoolean.
Defaulttrue
prometheusMetricsCAFile
AttributeValue
KeyprometheusMetricsCAFile
Description

The path to the TLS CA file for the Prometheus metrics server.

SchemaString.
Defaultnone
prometheusMetricsCertFile
AttributeValue
KeyprometheusMetricsCertFile
Description

The path to the TLS certificate file for the Prometheus metrics server.

SchemaString.
Defaultnone
prometheusMetricsEnabled
AttributeValue
KeyprometheusMetricsEnabled
Description

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

SchemaBoolean.
Defaultfalse
prometheusMetricsHost
AttributeValue
KeyprometheusMetricsHost
Description

The host that the Prometheus metrics server should bind to.

SchemaString.
Defaultnone
prometheusMetricsKeyFile
AttributeValue
KeyprometheusMetricsKeyFile
Description

The path to the TLS private key file for the Prometheus metrics server.

SchemaString.
Defaultnone
prometheusMetricsPort
AttributeValue
KeyprometheusMetricsPort
Description

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

SchemaInteger: [0,65535]
Default9091
prometheusProcessMetricsEnabled
AttributeValue
KeyprometheusProcessMetricsEnabled
Description

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.

SchemaBoolean.
Defaulttrue
prometheusWireGuardMetricsEnabled
AttributeValue
KeyprometheusWireGuardMetricsEnabled
Description

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.

SchemaBoolean.
Defaulttrue

Data plane: Common

No matching group found for 'Data plane: Common'.

Data plane: iptables

No matching group found for 'Data plane: iptables'.

Data plane: nftables

No matching group found for 'Data plane: nftables'.

Data plane: eBPF

No matching group found for 'Data plane: eBPF'.

Data plane: Windows

No matching group found for 'Data plane: Windows'.

Data plane: OpenStack support

No matching group found for 'Data plane: OpenStack support'.

Data plane: XDP acceleration for iptables data plane

No matching group found for 'Data plane: XDP acceleration for iptables data plane'.

Overlay: VXLAN overlay

vxlanEnabled
AttributeValue
KeyvxlanEnabled
Description

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

SchemaBoolean.
Defaultnone
vxlanMTU
AttributeValue
KeyvxlanMTU
Description

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.

SchemaInteger
Default0
vxlanMTUV6
AttributeValue
KeyvxlanMTUV6
Description

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.

SchemaInteger
Default0
vxlanPort
AttributeValue
KeyvxlanPort
Description

The UDP port number to use for VXLAN traffic.

SchemaInteger
Default4789
vxlanVNI
AttributeValue
KeyvxlanVNI
Description

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

SchemaInteger
Default4096

Overlay: IP-in-IP

ipipEnabled
AttributeValue
KeyipipEnabled
Description

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

SchemaBoolean.
Defaultnone
ipipMTU
AttributeValue
KeyipipMTU
Description

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.

SchemaInteger
Default0

Overlay: WireGuard

No matching group found for 'Overlay: WireGuard'.

Overlay: IPSec

ipsecAllowUnsecuredTraffic
AttributeValue
KeyipsecAllowUnsecuredTraffic
Description

Controls whether non-IPsec traffic is allowed in addition to IPsec traffic. Enabling this negates the anti-spoofing protections of IPsec but it is useful when migrating to/from IPsec.

SchemaBoolean.
Defaultfalse
ipsecESPAlgorithm
AttributeValue
KeyipsecESPAlgorithm
Description

IPSecESAlgorithm sets IPSec ESP algorithm. Default is NIST suite B recommendation.

SchemaString.
Defaultaes128gcm16-ecp256
ipsecIKEAlgorithm
AttributeValue
KeyipsecIKEAlgorithm
Description

Sets IPSec IKE algorithm. Default is NIST suite B recommendation.

SchemaString.
Defaultaes128gcm16-prfsha256-ecp256
ipsecLogLevel
AttributeValue
KeyipsecLogLevel
Description

Controls log level for IPSec components. Set to None for no logging. A generic log level terminology is used [None, Notice, Info, Debug, Verbose].

SchemaOne of: Debug, Info, None, Notice, Verbose.
DefaultInfo
ipsecMode
AttributeValue
KeyipsecMode
Description

Controls which mode IPSec is operating on. Default value means IPSec is not enabled.

SchemaString.
Defaultnone
ipsecPolicyRefreshInterval
AttributeValue
KeyipsecPolicyRefreshInterval
Description

The interval at which Felix will check the kernel's IPsec policy tables and repair any inconsistencies.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default10m0s

Flow logs: Prometheus reports

deletedMetricsRetentionSecs
AttributeValue
KeydeletedMetricsRetentionSecs
Description

Controls how long metrics are retianed after the flow is gone.

SchemaInteger.
Default30s
prometheusReporterCAFile
AttributeValue
KeyprometheusReporterCAFile
Description

The path to the TLS CA file for the Prometheus per-flow metrics reporter.

SchemaString.
Defaultnone
prometheusReporterCertFile
AttributeValue
KeyprometheusReporterCertFile
Description

The path to the TLS certificate file for the Prometheus per-flow metrics reporter.

SchemaString.
Defaultnone
prometheusReporterEnabled
AttributeValue
KeyprometheusReporterEnabled
Description

Controls whether the Prometheus per-flow metrics reporter is enabled. This is used to show real-time flow metrics in the UI.

SchemaBoolean.
Defaultfalse
prometheusReporterKeyFile
AttributeValue
KeyprometheusReporterKeyFile
Description

The path to the TLS private key file for the Prometheus per-flow metrics reporter.

SchemaString.
Defaultnone
prometheusReporterPort
AttributeValue
KeyprometheusReporterPort
Description

The port that the Prometheus per-flow metrics reporter should bind to.

SchemaInteger: [0,65535]
Default9092

Flow logs: Syslog reports

syslogReporterAddress
AttributeValue
KeysyslogReporterAddress
Description

The address to dial to when writing to Syslog. For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. For more, see: https://pkg.go.dev/net#Dial.

SchemaString.
Defaultnone
syslogReporterEnabled
AttributeValue
KeysyslogReporterEnabled
Description

Turns on the feature to write logs to Syslog. Please note that this can incur significant disk space usage when running felix on non-cluster hosts.

SchemaBoolean.
Defaultfalse
syslogReporterNetwork
AttributeValue
KeysyslogReporterNetwork
Description

The network to dial to when writing to Syslog. Known networks are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". For more, see: https://pkg.go.dev/net#Dial.

SchemaString.
Defaultnone

Flow logs: file reports

flowLogsAggregationThresholdBytes
AttributeValue
KeyflowLogsAggregationThresholdBytes
Description

Used specify how far behind the external pipeline that reads flow logs can be. Default is 8192 bytes. This parameter only takes effect when FlowLogsDynamicAggregationEnabled is set to true.

SchemaInteger
Default8192
flowLogsCollectProcessInfo
AttributeValue
KeyflowLogsCollectProcessInfo
Description

If enabled Felix will load the kprobe BPF programs to collect process info.

SchemaBoolean.
Defaultfalse
flowLogsCollectProcessPath
AttributeValue
KeyflowLogsCollectProcessPath
Description

When FlowLogsCollectProcessPath and FlowLogsCollectProcessInfo are both enabled, each flow log will include information about the process that is sending or receiving the packets in that flow: the process_name field will contain the full path of the process executable, and the process_args field will have the arguments with which the executable was invoked. Process information will not be reported for connections which use raw sockets.

SchemaBoolean.
Defaultfalse
flowLogsCollectTcpStats
AttributeValue
KeyflowLogsCollectTcpStats
Description

Enables flow logs reporting TCP socket stats.

SchemaBoolean.
Defaultfalse
flowLogsCollectorDebugTrace
AttributeValue
KeyflowLogsCollectorDebugTrace
Description

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

SchemaBoolean.
Defaultfalse
flowLogsDestDomainsByClient
AttributeValue
KeyflowLogsDestDomainsByClient
Description

Used to configure if the source IP is used in the mapping of top level destination domains.

SchemaBoolean.
Defaulttrue
flowLogsDynamicAggregationEnabled
AttributeValue
KeyflowLogsDynamicAggregationEnabled
Description

Used to enable/disable dynamically changing aggregation levels. Default is true.

SchemaBoolean.
Defaultfalse
flowLogsEnableHostEndpoint
AttributeValue
KeyflowLogsEnableHostEndpoint
Description

Enables Flow logs reporting for HostEndpoints.

SchemaBoolean.
Defaultfalse
flowLogsEnableNetworkSets
AttributeValue
KeyflowLogsEnableNetworkSets
Description

Enables Flow logs reporting for GlobalNetworkSets.

SchemaBoolean.
Defaultfalse
flowLogsFileAggregationKindForAllowed
AttributeValue
KeyflowLogsFileAggregationKindForAllowed
Description

Used to choose the type of aggregation for flow log entries created for allowed connections. . Accepted values are 0, 1 and 2. 0 - No aggregation. 1 - Source port based aggregation. 2 - Pod prefix name based aggreagation.

SchemaOne of: 0, 1, 2.
Default2
flowLogsFileAggregationKindForDenied
AttributeValue
KeyflowLogsFileAggregationKindForDenied
Description

Used to choose the type of aggregation for flow log entries created for denied connections. . Accepted values are 0, 1 and 2. 0 - No aggregation. 1 - Source port based aggregation. 2 - Pod prefix name based aggregation. 3 - No destination ports based aggregation.

SchemaOne of: 0, 1, 2, 3.
Default1
flowLogsFileDirectory
AttributeValue
KeyflowLogsFileDirectory
Description

Sets the directory where flow logs files are stored.

SchemaString.
Default/var/log/calico/flowlogs
flowLogsFileDomainsLimit
AttributeValue
KeyflowLogsFileDomainsLimit
Description

Used to configure the number of (destination) domains to include in the flow log. These are not included for workload or host endpoint destinations.

SchemaInteger
Default5
flowLogsFileEnabled
AttributeValue
KeyflowLogsFileEnabled
Description

When set to true, enables logging flow logs to a file. If false no flow logging to file will occur.

SchemaBoolean.
Defaultfalse
flowLogsFileEnabledForAllowed
AttributeValue
KeyflowLogsFileEnabledForAllowed
Description

Used to enable/disable flow logs entries created for allowed connections. Default is true. This parameter only takes effect when FlowLogsFileReporterEnabled is set to true.

SchemaBoolean.
Defaulttrue
flowLogsFileEnabledForDenied
AttributeValue
KeyflowLogsFileEnabledForDenied
Description

Used to enable/disable flow logs entries created for denied flows. Default is true. This parameter only takes effect when FlowLogsFileReporterEnabled is set to true.

SchemaBoolean.
Defaulttrue
flowLogsFileIncludeLabels
AttributeValue
KeyflowLogsFileIncludeLabels
Description

Used to configure if endpoint labels are included in a Flow log entry written to file.

SchemaBoolean.
Defaultfalse
flowLogsFileIncludePolicies
AttributeValue
KeyflowLogsFileIncludePolicies
Description

Used to configure if policy information are included in a Flow log entry written to file.

SchemaBoolean.
Defaultfalse
flowLogsFileIncludeService
AttributeValue
KeyflowLogsFileIncludeService
Description

Used to configure if the destination service is included in a Flow log entry written to file. The service information can only be included if the flow was explicitly determined to be directed at the service (e.g. when the pre-DNAT destination corresponds to the service ClusterIP and port).

SchemaBoolean.
Defaultfalse
flowLogsFileMaxFileSizeMB
AttributeValue
KeyflowLogsFileMaxFileSizeMB
Description

Sets the max size in MB of flow logs files before rotation.

SchemaInteger
Default100
flowLogsFileMaxFiles
AttributeValue
KeyflowLogsFileMaxFiles
Description

Sets the number of log files to keep.

SchemaInteger
Default5
flowLogsFileNatOutgoingPortLimit
AttributeValue
KeyflowLogsFileNatOutgoingPortLimit
Description

Used to specify the maximum number of distinct post SNAT ports that will appear in the flowLogs. Default value is 3.

SchemaInteger
Default3
flowLogsFilePerFlowProcessArgsLimit
AttributeValue
KeyflowLogsFilePerFlowProcessArgsLimit
Description

Used to specify the maximum number of distinct process args that will appear in the flowLogs. Default value is 5.

SchemaInteger
Default5
flowLogsFilePerFlowProcessLimit
AttributeValue
KeyflowLogsFilePerFlowProcessLimit
Description

Used to specify the maximum number of flow log entries with distinct process information beyond which process information will be aggregated.

SchemaInteger
Default2
flowLogsFlushInterval
AttributeValue
KeyflowLogsFlushInterval
Description

Configures the interval at which Felix exports flow logs.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default5m0s
flowLogsGoldmaneServer
AttributeValue
KeyflowLogsGoldmaneServer
Description

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

SchemaString.
Defaultnone
flowLogsMaxOriginalIPsIncluded
AttributeValue
KeyflowLogsMaxOriginalIPsIncluded
Description

Specifies the number of unique IP addresses (if relevant) that should be included in Flow logs.

SchemaInteger
Default50
flowLogsPolicyEvaluationMode
AttributeValue
KeyflowLogsPolicyEvaluationMode
Description

Defines how policies are evaluated and reflected in flow logs. OnNewConnection - In this mode, staged policies are only evaluated when new connections are made in the dataplane. Staged/active policy changes will not be reflected in the pending_policies field of flow logs for long lived connections. 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.

SchemaString.
DefaultContinuous
flowLogsPolicyScope
AttributeValue
KeyflowLogsPolicyScope
Description

Controls which policies are included in flow logs. AllPolicies - Processes both transit policies for the local node and endpoint policies derived from packet source/destination IPs. Provides comprehensive visibility into all policy evaluations but increases log volume. EndpointPolicies - Processes only policies for endpoints identified as the source or destination of the packet (whether workload or host endpoints).

SchemaString.
DefaultEndpointPolicies
flowLogsPositionFilePath
AttributeValue
KeyflowLogsPositionFilePath
Description

Used specify the position of the external pipeline that reads flow logs. Default is /var/log/calico/flows.log.pos. This parameter only takes effect when FlowLogsDynamicAggregationEnabled is set to true.

SchemaString.
Default/var/log/calico/flows.log.pos

DNS logs / policy

dnsCacheEpoch
AttributeValue
KeydnsCacheEpoch
Description

An arbitrary number that can be changed, at runtime, to tell Felix to discard all its learnt DNS information. .

SchemaInteger
Default0
dnsCacheFile
AttributeValue
KeydnsCacheFile
Description

The name of the file that Felix uses to preserve learnt DNS information when restarting. .

SchemaString.
Default/var/run/calico/felix-dns-cache.txt
dnsCacheSaveInterval
AttributeValue
KeydnsCacheSaveInterval
Description

The periodic interval at which Felix saves learnt DNS information to the cache file. .

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default1m0s
dnsExtraTTL
AttributeValue
KeydnsExtraTTL
Description

Extra time to keep IPs and alias names that are learnt from DNS, in addition to each name or IP's advertised TTL. .

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default0s
dnsLogsFileAggregationKind
AttributeValue
KeydnsLogsFileAggregationKind
Description

Used to choose the type of aggregation for DNS log entries. . Accepted values are 0 and 1. 0 - No aggregation. 1 - Aggregate over clients with the same name prefix.

SchemaOne of: 0, 1.
Default1
dnsLogsFileDirectory
AttributeValue
KeydnsLogsFileDirectory
Description

Sets the directory where DNS log files are stored.

SchemaString.
Default/var/log/calico/dnslogs
dnsLogsFileEnabled
AttributeValue
KeydnsLogsFileEnabled
Description

Controls logging DNS logs to a file. If false no DNS logging to file will occur.

SchemaBoolean.
Defaultfalse
dnsLogsFileIncludeLabels
AttributeValue
KeydnsLogsFileIncludeLabels
Description

Used to configure if endpoint labels are included in a DNS log entry written to file.

SchemaBoolean.
Defaulttrue
dnsLogsFileMaxFileSizeMB
AttributeValue
KeydnsLogsFileMaxFileSizeMB
Description

Sets the max size in MB of DNS log files before rotation.

SchemaInteger
Default100
dnsLogsFileMaxFiles
AttributeValue
KeydnsLogsFileMaxFiles
Description

Sets the number of DNS log files to keep.

SchemaInteger
Default5
dnsLogsFilePerNodeLimit
AttributeValue
KeydnsLogsFilePerNodeLimit
Description

Limit on the number of DNS logs that can be emitted within each flush interval. When this limit has been reached, Felix counts the number of unloggable DNS responses within the flush interval, and emits a WARNING log with that count at the same time as it flushes the buffered DNS logs.

SchemaInteger
Default0
dnsLogsFlushInterval
AttributeValue
KeydnsLogsFlushInterval
Description

Configures the interval at which Felix exports DNS logs.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default5m0s
dnsLogsLatency
AttributeValue
KeydnsLogsLatency
Description

Indicates to include measurements of DNS request/response latency in each DNS log.

SchemaBoolean.
Defaulttrue
dnsPacketsNfqueueID
AttributeValue
KeydnsPacketsNfqueueID
Description

The NFQUEUE ID to use for capturing DNS packets to ensure programming IPSets occurs before the response is released. Used when DNSPolicyMode is DelayDNSResponse.

SchemaInteger
Default101
dnsPacketsNfqueueMaxHoldDuration
AttributeValue
KeydnsPacketsNfqueueMaxHoldDuration
Description

The max length of time to hold on to a DNS response while waiting for the the dataplane to be programmed. Used when DNSPolicyMode is DelayDNSResponse.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default3s
dnsPacketsNfqueueSize
AttributeValue
KeydnsPacketsNfqueueSize
Description

The size of the NFQUEUE for captured DNS packets. This is the maximum number of DNS packets that may be queued awaiting programming in the dataplane. Used when DNSPolicyMode is DelayDNSResponse.

SchemaInteger
Default100
dnsPolicyMode
AttributeValue
KeydnsPolicyMode
Description

Specifies how DNS policy programming will be handled. DelayDeniedPacket - Felix delays any denied packet that traversed a policy that included egress domain matches, but did not match. The packet is released after a fixed time, or after the destination IP address was programmed. DelayDNSResponse - Felix delays any DNS response until related IPSets are programmed. This introduces some latency to all DNS packets (even when no IPSet programming is required), but it ensures policy hit statistics are accurate. This is the recommended setting when you are making use of staged policies or policy rule hit statistics. NoDelay - Felix does not introduce any delay to the packets. DNS rules may not have been programmed by the time the first packet traverses the policy rules. Client applications need to handle reconnection attempts if initial connection attempts fail. This may be problematic for some applications or for very low DNS TTLs.

Inline - Parses DNS response inline with DNS response packet processing within IPTables. This guarantees the DNS rules reflect any change immediately. This mode works for iptables only and matches the same mode for BPFDNSPolicyMode. This setting is ignored on Windows and "NoDelay" is always used.

This setting is ignored by eBPF and BPFDNSPolicyMode is used instead.

This field has no effect in NFTables mode. Please use NFTablesDNSPolicyMode instead.

SchemaOne of: "DelayDNSResponse", "DelayDeniedPacket", "Inline", "NoDelay".
DefaultDelayDeniedPacket
dnsPolicyNfqueueID
AttributeValue
KeydnsPolicyNfqueueID
Description

The NFQUEUE ID to use for DNS Policy re-evaluation when the domains IP hasn't been programmed to ipsets yet. Used when DNSPolicyMode is DelayDeniedPacket.

SchemaInteger
Default100
dnsPolicyNfqueueSize
AttributeValue
KeydnsPolicyNfqueueSize
Description

DNSPolicyNfqueueID is the size of the NFQUEUE for DNS policy re-evaluation. This is the maximum number of denied packets that may be queued up pending re-evaluation. Used when DNSPolicyMode is DelayDeniedPacket.

SchemaInteger
Default255
dnsTrustedServers
AttributeValue
KeydnsTrustedServers
Description

The DNS servers that Felix should trust. Each entry here must be <ip>[:<port>] - indicating an explicit DNS server IP - or k8s-service:[<namespace>/]<name>[:port] - indicating a Kubernetes DNS service. <port> defaults to the first service port, or 53 for an IP, and <namespace> to kube-system. An IPv6 address with a port must use the square brackets convention, for example [fd00:83a6::12]:5353.Note that Felix (calico-node) will need RBAC permission to read the details of each service specified by a k8s-service:... form. .

SchemaList of strings: ["<string>", ...].
Defaultnone

L7 logs

l7LogsFileAggregationDestinationInfo
AttributeValue
Keyl7LogsFileAggregationDestinationInfo
Description

Used to choose the type of aggregation for the destination metadata on L7 log entries. . Accepted values are IncludeL7DestinationInfo and ExcludeL7DestinationInfo. IncludeL7DestinationInfo - Include destination metadata in the logs. ExcludeL7DestinationInfo - Aggregate over all other fields ignoring the destination aggregated name, namespace, and type.

SchemaOne of: ExcludeL7DestinationInfo, IncludeL7DestinationInfo.
DefaultIncludeL7DestinationInfo
l7LogsFileAggregationHTTPHeaderInfo
AttributeValue
Keyl7LogsFileAggregationHTTPHeaderInfo
Description

Used to choose the type of aggregation for HTTP header data on L7 log entries. . Accepted values are IncludeL7HTTPHeaderInfo and ExcludeL7HTTPHeaderInfo. IncludeL7HTTPHeaderInfo - Include HTTP header data in the logs. ExcludeL7HTTPHeaderInfo - Aggregate over all other fields ignoring the user agent and log type.

SchemaOne of: ExcludeL7HTTPHeaderInfo, IncludeL7HTTPHeaderInfo.
DefaultExcludeL7HTTPHeaderInfo
l7LogsFileAggregationHTTPMethod
AttributeValue
Keyl7LogsFileAggregationHTTPMethod
Description

Used to choose the type of aggregation for the HTTP request method on L7 log entries. . Accepted values are IncludeL7HTTPMethod and ExcludeL7HTTPMethod. IncludeL7HTTPMethod - Include HTTP method in the logs. ExcludeL7HTTPMethod - Aggregate over all other fields ignoring the HTTP method.

SchemaOne of: ExcludeL7HTTPMethod, IncludeL7HTTPMethod.
DefaultIncludeL7HTTPMethod
l7LogsFileAggregationNumURLPath
AttributeValue
Keyl7LogsFileAggregationNumURLPath
Description

Used to choose the number of components in the url path to display. This allows for the url to be truncated in case parts of the path provide no value. Setting this value to negative will allow all parts of the path to be displayed. .

SchemaInteger
Default5
l7LogsFileAggregationResponseCode
AttributeValue
Keyl7LogsFileAggregationResponseCode
Description

Used to choose the type of aggregation for the response code on L7 log entries. . Accepted values are IncludeL7ResponseCode and ExcludeL7ResponseCode. IncludeL7ResponseCode - Include the response code in the logs. ExcludeL7ResponseCode - Aggregate over all other fields ignoring the response code.

SchemaOne of: ExcludeL7ResponseCode, IncludeL7ResponseCode.
DefaultIncludeL7ResponseCode
l7LogsFileAggregationServiceInfo
AttributeValue
Keyl7LogsFileAggregationServiceInfo
Description

Used to choose the type of aggregation for the service data on L7 log entries. . Accepted values are IncludeL7ServiceInfo and ExcludeL7ServiceInfo. IncludeL7ServiceInfo - Include service data in the logs. ExcludeL7ServiceInfo - Aggregate over all other fields ignoring the service name, namespace, and port.

SchemaOne of: ExcludeL7ServiceInfo, IncludeL7ServiceInfo.
DefaultIncludeL7ServiceInfo
l7LogsFileAggregationSourceInfo
AttributeValue
Keyl7LogsFileAggregationSourceInfo
Description

L7LogsFileAggregationExcludeSourceInfo is used to choose the type of aggregation for the source metadata on L7 log entries. . Accepted values are IncludeL7SourceInfo, IncludeL7SourceInfoNoPort, and ExcludeL7SourceInfo. IncludeL7SourceInfo - Include source metadata in the logs. IncludeL7SourceInfoNoPort - Include source metadata in the logs excluding the source port. ExcludeL7SourceInfo - Aggregate over all other fields ignoring the source aggregated name, namespace, and type.

SchemaOne of: ExcludeL7SourceInfo, IncludeL7SourceInfo, IncludeL7SourceInfoNoPort.
DefaultIncludeL7SourceInfoNoPort
l7LogsFileAggregationTrimURL
AttributeValue
Keyl7LogsFileAggregationTrimURL
Description

Used to choose the type of aggregation for the url on L7 log entries. . Accepted values: IncludeL7FullURL - Include the full URL up to however many path components are allowed by L7LogsFileAggregationNumURLPath. TrimURLQuery - Aggregate over all other fields ignoring the query parameters on the URL. TrimURLQueryAndPath - Aggregate over all other fields and the base URL only. ExcludeL7URL - Aggregate over all other fields ignoring the URL entirely.

SchemaOne of: ExcludeL7URL, IncludeL7FullURL, TrimURLQuery, TrimURLQueryAndPath.
DefaultIncludeL7FullURL
l7LogsFileAggregationURLCharLimit
AttributeValue
Keyl7LogsFileAggregationURLCharLimit
Description

Limit on the length of the URL collected in L7 logs. When a URL length reaches this limit it is sliced off, and the sliced URL is sent to log storage.

SchemaInteger
Default250
l7LogsFileDirectory
AttributeValue
Keyl7LogsFileDirectory
Description

Sets the directory where L7 log files are stored.

SchemaString.
Default/var/log/calico/l7logs
l7LogsFileEnabled
AttributeValue
Keyl7LogsFileEnabled
Description

Controls logging L7 logs to a file. If false no L7 logging to file will occur.

SchemaBoolean.
Defaulttrue
l7LogsFileMaxFileSizeMB
AttributeValue
Keyl7LogsFileMaxFileSizeMB
Description

Sets the max size in MB of L7 log files before rotation.

SchemaInteger
Default100
l7LogsFileMaxFiles
AttributeValue
Keyl7LogsFileMaxFiles
Description

Sets the number of L7 log files to keep.

SchemaInteger
Default5
l7LogsFilePerNodeLimit
AttributeValue
Keyl7LogsFilePerNodeLimit
Description

Limit on the number of L7 logs that can be emitted within each flush interval. When this limit has been reached, Felix counts the number of unloggable L7 responses within the flush interval, and emits a WARNING log with that count at the same time as it flushes the buffered L7 logs. A value of 0 means no limit.

SchemaInteger
Default1500
l7LogsFlushInterval
AttributeValue
Keyl7LogsFlushInterval
Description

Configures the interval at which Felix exports L7 logs.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default5m0s

AWS integration

awsRequestTimeout
AttributeValue
KeyawsRequestTimeout
Description

The timeout on AWS API requests.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default30s
awsSecondaryIPRoutingRulePriority
AttributeValue
KeyawsSecondaryIPRoutingRulePriority
Description

Controls the priority that Felix will use for routing rules when programming them for AWS Secondary IP support.

SchemaInteger: [0,4294967295]
Default101
awsSecondaryIPSupport
AttributeValue
KeyawsSecondaryIPSupport
Description

Controls whether Felix will try to provision AWS secondary ENIs for workloads that have IPs from IP pools that are configured with an AWS subnet ID. If the field is set to "EnabledENIPerWorkload" then each workload with an AWS-backed IP will be assigned its own secondary ENI. If set to "Enabled" then each workload with an AWS-backed IP pool will be allocated a secondary IP address on a secondary ENI; this mode requires additional IP pools to be provisioned for the host to claim IPs for the primary IP of the secondary ENIs. Accepted value must be one of "Enabled", "EnabledENIPerWorkload" or "Disabled".

SchemaOne of: Disabled, Enabled, EnabledENIPerWorkload.
DefaultDisabled
awsSrcDstCheck
AttributeValue
KeyawsSrcDstCheck
Description

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.

SchemaOne of: "Disable", "DoNothing", "Enable".
DefaultDoNothing

Egress gateway

egressGatewayPollFailureCount
AttributeValue
KeyegressGatewayPollFailureCount
Description

The minimum number of poll failures before a remote Egress Gateway is considered to have failed.

SchemaInteger
Default3
egressGatewayPollInterval
AttributeValue
KeyegressGatewayPollInterval
Description

The interval at which Felix will poll remote egress gateways to check their health. Only Egress Gateways with a named "health" port will be polled in this way. Egress Gateways that fail the health check will be taken our of use as if they have been deleted.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default10s
egressIPHostIfacePattern
AttributeValue
KeyegressIPHostIfacePattern
Description

A comma-separated list of interface names which might send and receive egress traffic across the cluster boundary, after it has left an Egress Gateway pod. Felix will ensure src_valid_mark sysctl flags are set correctly for matching interfaces. To target multiple interfaces with a single string, the list supports regular expressions. For regular expressions, wrap the value with /. Example: /^bond/,eth0 will match all interfaces that begin with bond and also the interface eth0.

SchemaString.
Defaultnone
egressIPRoutingRulePriority
AttributeValue
KeyegressIPRoutingRulePriority
Description

Controls the priority value to use for the egress IP routing rule.

SchemaInteger
Default100
egressIPSupport
AttributeValue
KeyegressIPSupport
Description

Defines three different support modes for egress IP function. - Disabled: Egress IP function is disabled. - EnabledPerNamespace: Egress IP function is enabled and can be configured on a per-namespace basis; per-pod egress annotations are ignored. - EnabledPerNamespaceOrPerPod: Egress IP function is enabled and can be configured per-namespace or per-pod, with per-pod egress annotations overriding namespace annotations.

SchemaOne of: Disabled, EnabledPerNamespace, EnabledPerNamespaceOrPerPod.
DefaultDisabled
egressIPVXLANPort
AttributeValue
KeyegressIPVXLANPort
Description

The port number of vxlan tunnel device for egress traffic.

SchemaInteger
Default4790
egressIPVXLANVNI
AttributeValue
KeyegressIPVXLANVNI
Description

The VNI ID of vxlan tunnel device for egress traffic.

SchemaInteger
Default4097

External network support

externalNetworkRoutingRulePriority
AttributeValue
KeyexternalNetworkRoutingRulePriority
Description

Controls the priority value to use for the external network routing rule.

SchemaInteger
Default102
externalNetworkSupport
AttributeValue
KeyexternalNetworkSupport
Description

Defines two different support modes for external network function. - Disabled: External network function is disabled. - Enabled: External network function is enabled.

SchemaOne of: Disabled, Enabled.
DefaultDisabled

Packet capture

captureDir
AttributeValue
KeycaptureDir
Description

Controls directory to store file capture.

SchemaString.
Default/var/log/calico/pcap
captureMaxFiles
AttributeValue
KeycaptureMaxFiles
Description

Controls number of rotated capture file to keep.

SchemaInteger
Default2
captureMaxSizeBytes
AttributeValue
KeycaptureMaxSizeBytes
Description

Controls the max size of a file capture.

SchemaInteger
Default10000000
captureRotationSeconds
AttributeValue
KeycaptureRotationSeconds
Description

Controls the time rotation of a packet capture.

SchemaInteger
Default3600

L7 proxy

tproxyMode
AttributeValue
KeytproxyMode
Description

Sets whether traffic is directed through a transparent proxy for further processing or not and how is the proxying done.

SchemaOne of: Disabled, Enabled, EnabledAllServices.
DefaultDisabled
tproxyPort
AttributeValue
KeytproxyPort
Description

Sets to which port proxied traffic should be redirected.

SchemaInteger
Default16001
tproxyUpstreamConnMark
AttributeValue
KeytproxyUpstreamConnMark
Description

Tells Felix which mark is used by the proxy for its upstream connections so that Felix can program the dataplane correctly.

SchemaUnsigned 32-bit integer.
Default0x17

Debug/test-only (generally unsupported)

debugDisableLogDropping
AttributeValue
KeydebugDisableLogDropping
Description

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

SchemaBoolean.
Defaultfalse
debugHost
AttributeValue
KeydebugHost
Description

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

SchemaString.
Defaultlocalhost
debugMemoryProfilePath
AttributeValue
KeydebugMemoryProfilePath
Description

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

SchemaString.
Defaultnone
debugPort
AttributeValue
KeydebugPort
Description

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.

SchemaInteger: [0,65535]
Defaultnone
debugSimulateCalcGraphHangAfter
AttributeValue
KeydebugSimulateCalcGraphHangAfter
Description

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

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default0s
debugSimulateDataplaneApplyDelay
AttributeValue
KeydebugSimulateDataplaneApplyDelay
Description

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

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default0s
debugSimulateDataplaneHangAfter
AttributeValue
KeydebugSimulateDataplaneHangAfter
Description

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

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default0s
statsDumpFilePath
AttributeValue
KeystatsDumpFilePath
Description

The path to write a diagnostic flow logs statistics dump to when triggered by signal.

SchemaString.
Default/var/log/calico/stats/dump

Usage reporting

usageReportingEnabled
AttributeValue
KeyusageReportingEnabled
Description

Unused in Calico Enterprise, usage reporting is permanently disabled.

SchemaBoolean.
Defaulttrue
usageReportingInitialDelay
AttributeValue
KeyusageReportingInitialDelay
Description

Unused in Calico Enterprise, usage reporting is permanently disabled.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default5m0s
usageReportingInterval
AttributeValue
KeyusageReportingInterval
Description

Unused in Calico Enterprise, usage reporting is permanently disabled.

SchemaDuration string, for example 1m30s123ms or 1h5m.
Default24h0m0s

Health Timeout Overrides

Felix has internal liveness and readiness watchdog timers that monitor its various loops. If a loop fails to "check in" within the allotted timeout then Felix will report non-Ready or non-Live on its health port (which is monitored by kubelet in a Kubernetes system). If Felix reports non-Live, this can result in the Pod being restarted.

In Kubernetes, if you see the calico-node Pod readiness or liveness checks fail intermittently, check the calico-node Pod log for a log from Felix that gives the overall health status (the list of components will depend on which features are enabled):

+---------------------------+---------+----------------+-----------------+--------+
| COMPONENT | TIMEOUT | LIVENESS | READINESS | DETAIL |
+---------------------------+---------+----------------+-----------------+--------+
| CalculationGraph | 30s | reporting live | reporting ready | |
| FelixStartup | 0s | reporting live | reporting ready | |
| InternalDataplaneMainLoop | 1m30s | reporting live | reporting ready | |
+---------------------------+---------+----------------+-----------------+--------+

If some health timeouts show as "timed out" it may help to apply an override using the healthTimeoutOverrides field:

...
spec:
healthTimeoutOverrides:
- name: InternalDataplaneMainLoop
timeout: "5m"
- name: CalculationGraph
timeout: "1m30s"
...

A timeout value of 0 disables the timeout.

ProtoPort

FieldDescriptionAccepted ValuesSchema
portThe exact port match0-65535int
protocolThe protocol matchtcp, udp, sctpstring
netThe CIDR matchany valid CIDR (e.g. 192.168.0.0/16)string

Keep in mind that in the following example, net: "" and net: "0.0.0.0/0" are processed as the same in the policy enforcement.

...
spec:
failsafeInboundHostPorts:
- net: "192.168.1.1/32"
port: 22
protocol: tcp
- net: ""
port: 67
protocol: udp
failsafeOutboundHostPorts:
- net: "0.0.0.0/0"
port: 67
protocol: udp
...

AggregationKind

ValueDescription
0No aggregation
1Aggregate all flows that share a source port on each node
2Aggregate all flows that share source ports or are from the same ReplicaSet on each node

DNSPolicyMode

ValueDescription
DelayDeniedPacketFelix delays any denied packet that traversed a policy that included egress domain matches, but did not match. The packet is released after a fixed time, or after the destination IP address was programmed.
DelayDNSResponseFelix delays any DNS response until related IPSets are programmed. This introduces some latency to all DNS packets (even when no IPSet programming is required), but it ensures policy hit statistics are accurate. This is the recommended setting when you are making use of staged policies or policy rule hit statistics. A Linux kernel version of 3.13 or greater is required to use DelayDNSResponse. For earlier kernel versions, this value is modified to DelayDeniedPacket.
NoDelayFelix does not introduce any delay to the packets. DNS rules may not have been programmed by the time the first packet traverses the policy rules. Client applications need to handle reconnection attempts if initial connection attempts fail. This may be problematic for some applications or for very low DNS TTLs.

On Windows, or when using the eBPF data plane, this setting is ignored. Windows always uses NoDelay while eBPF has its own BPFDNSPolicyMode option.

BPFDNSPolicyMode

ValueDescription
InlineFelix does not introduce any delay to any packets. Felix's eBPF programs parse DNS responses and program policy rules immediately, before the DNS response is passed to the application. This only applies to wildcard prefixes: *.x.y.z will be processed in this manner, but wildcards such as x.*.y.z will not match. A Linux kernel version of 5.17 or greater is required.
NoDelayFelix does not introduce any delay to the packets. DNS rules may not have been programmed by the time the first packet traverses the policy rules. Client applications need to handle reconnection attempts if initial connection attempts fail. This may be problematic for some applications or for very low DNS TTLs.

RouteTableRange

The RouteTableRange option is now deprecated in favor of RouteTableRanges.

FieldDescriptionAccepted ValuesSchema
minMinimum index to use1-250int
maxMaximum index to use1-250int

RouteTableRanges

RouteTableRanges is a list of RouteTableRange objects:

FieldDescriptionAccepted ValuesSchema
minMinimum index to use1 - 4294967295int
maxMaximum index to use1 - 4294967295int

Each item in the RouteTableRanges list designates a range of routing tables available to Calico. By default, Calico will use a single range of 1-250. If a range spans Linux's reserved table range (253-255) then those tables are automatically excluded from the list. It's possible that other table ranges may also be reserved by third-party systems unknown to Calico. In that case, multiple ranges can be defined to target tables below and above the sensitive ranges:

target tables 65-99, and 256-1000, skipping 100-255
calicoctl patch felixconfig default --type=merge -p '{"spec":{"routeTableRanges": [{"min": 65, "max": 99}, {"min": 256, "max": 1000}] }}

Note, for performance reasons, the maximum total number of routing tables that Felix will accept is 65535 (or 2*16).

Specifying both the RouteTableRange and RouteTableRanges arguments is not supported and will result in an error from the api.

AWS IAM Role/Policy for source-destination-check configuration

Setting awsSrcDstCheck to Disable will automatically disable source-destination-check on EC2 instances in a cluster, provided necessary IAM roles and policies are set. One of the policies assigned to IAM role of cluster nodes must contain a statement similar to the following:

{
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances",
"ec2:ModifyNetworkInterfaceAttribute"
],
"Resource": "*"
}

If there are no policies attached to node roles containing the above statement, attach a new policy. For example, if a node role is test-cluster-nodeinstance-role, click on the IAM role in AWS console. In the Permission policies list, add a new inline policy with the above statement to the new policy JSON definition. For detailed information, see AWS documentation.

For an EKS cluster, the necessary IAM role and policy is available by default. No further actions are needed.

Supported operations

Datastore typeCreateDeleteDelete (Global default)UpdateGet/ListNotes
Kubernetes API serverYesYesNoYesYes