Skip to content

DOCS-3084: Fix inaccuracies on the FelixConfiguration reference - #3138

Draft
ctauchen wants to merge 4 commits into
tigera:mainfrom
ctauchen:DOCS-3084-fact-check-felixconfig
Draft

ctauchen wants to merge 4 commits into
tigera:mainfrom
ctauchen:DOCS-3084-fact-check-felixconfig

Conversation

@ctauchen

@ctauchen ctauchen commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes inaccuracies on the FelixConfiguration reference, found and verified with the calico-fact-check skill.

Page text (felixconfig.mdx):

  • name: lowercase only, and no underscores, in both Metadata tables.
  • The Spec section did not render the "Flow logs: file reports" group, so five flowLogs fields were undocumented.
  • The health table shows - for the FelixStartup timeout, not 0s.
  • ProtoPort protocol: Felix rejects SCTP in failsafe ports. The accepted values are TCP and UDP.
  • In the failsafe example, failsafeOutboundHostPorts sat outside spec.
  • RouteTableRange and RouteTableRanges min and max are marked Required.
  • RouteTableRanges items are not RouteTableRange objects, which are limited to 1-250.
  • 65535 is 2^16 - 1, not 2*16.

Field descriptions (config-params.json). This file is a copy of felix/docs/config-params.json at each release, so each fix also needs the upstream source changed, or the next sync reverts it. The upstream source is given for each item (paths at v3.33.0).

  • EtcdAddr: the default is not used to connect; Felix uses the address only when it is set. felix/config/config_params.go
  • EtcdScheme: the description opened with the label of a different parameter. felix/config/config_params.go
  • TyphaK8sServiceName: Felix looks up EndpointSlices, not Endpoints. felix/config/config_params.go
  • healthEnabled: the operator and the manifests set FELIX_HEALTHENABLED=true, which overrides FelixConfiguration. felix/config/config_params.go
  • logActionRateLimitBurst: the accepted range is 0-9999. api/pkg/apis/projectcalico/v3/felixconfig.go, felix/config/config_params.go
  • logConnectionTransitions (next and 3.33): untracked policies do not get the follow-up log. api/pkg/apis/projectcalico/v3/felixconfig.go
  • logDebugFilenameRegex: the filter applies to Trace logs as well as Debug. felix/config/config_params.go
  • logSeverityFile, logSeverityScreen, logSeveritySys: logs at the configured level are sent too, and None for syslog only works in the configuration file and environment variable. api/pkg/apis/projectcalico/v3/felixconfig.go
  • defaultEndpointToHostAction: the operator and the manifests set ACCEPT, which overrides FelixConfiguration. api/pkg/apis/projectcalico/v3/felixconfig.go
  • failsafeInboundHostPorts: SCTP makes Felix fail, an omitted protocol defaults to TCP only in the configuration file and environment variable, and an empty list is written none there. api/pkg/apis/projectcalico/v3/felixconfig.go
  • istioDSCPMark (next, 3.33 and 3.32): the schema is integer or string, and the default is 23. felix/config/metadata.go
  • localSubnetL2Reachability (next and 3.33): the address must also be in a pool with IP-in-IP and VXLAN both Never. api/pkg/apis/projectcalico/v3/felixconfig.go
  • natOutgoingExclusions: traffic to every IP pool is left unmasqueraded, except LoadBalancer-only pools. api/pkg/apis/projectcalico/v3/felixconfig.go
  • FELIX_POLICYSYNCPATHPREFIX takes a directory, not a file. felix/config/param_types.go
  • FELIX_ROUTETABLERANGE and FELIX_ROUTETABLERANGES: range ends start at 1, not 0. felix/config/param_types.go
  • prometheusWireGuardMetricsEnabled: Felix registers the WireGuard collector only when WireGuard is enabled. api/pkg/apis/projectcalico/v3/felixconfig.go
  • iptablesRefreshInterval: it refreshes the iptables rules, not IP sets, and the note about its default is removed. api/pkg/apis/projectcalico/v3/felixconfig.go
  • metadataAddr: a domain name does not work; it must be an IP address. api/pkg/apis/projectcalico/v3/felixconfig.go
  • reportingInterval: calico-node writes 0s into the default FelixConfiguration, so the 30s default does not apply. api/pkg/apis/projectcalico/v3/felixconfig.go
  • bpfConnectTimeLoadBalancingEnabled: Felix does not read it; clientv3 converts it to bpfConnectTimeLoadBalancing. api/pkg/apis/projectcalico/v3/felixconfig.go
  • bpfConntrackLogLevel: the YAML default is Off. felix/config/metadata.go
  • bpfConntrackTimeouts: the default timers are filled in, and the description named a field that does not exist. felix/config/metadata.go, api/pkg/apis/projectcalico/v3/felixconfig.go
  • bpfEnforceRPF: the default is Loose, so the description no longer says strict. api/pkg/apis/projectcalico/v3/felixconfig.go
  • bpfPSNATPorts (next, 3.33 and 3.32): Felix picks ports from n to n+m-1. api/pkg/apis/projectcalico/v3/felixconfig.go
  • flowLogsFlushInterval and flowLogsGoldmaneServer: with Goldmane, the operator sets both through environment variables, and the description named the server field wrongly. felix/config/config_params.go
  • usageReportingEnabled: the report also sends the Kubernetes version, cluster type, a cluster GUID and resource counts. api/pkg/apis/projectcalico/v3/felixconfig.go
  • prometheusMetricsClientAuth (3.32 only): the schema row was blank. api/pkg/apis/projectcalico/v3/felixconfig.go
  • natPortRange and bpfPSNATPorts (3.31 only): the schema is integer or string. api/pkg/apis/projectcalico/v3/felixconfig.go
  • nftablesMode (3.31 only): Felix v3.31.7 does not accept Auto. felix/config/config_params.go

Changes next, 3.33, 3.32 and 3.31. Each fix was reproduced on a kind cluster running that tree's release: v3.33.0 for next and 3.33, v3.32.2 for 3.32, v3.31.7 for 3.31. Next and 3.33 were verified in both API server mode and native v3 CRD mode.

Not changed, for follow-up:

  • The routeTableRanges patch example uses two ranges. At v3.32.2 and v3.31.7, more than one range puts Felix into a restart loop and calico-node never becomes Ready. The example's shell syntax is also broken.
  • Deleting a node does not delete its node. FelixConfiguration with the Kubernetes datastore. Only the etcd node deleter does that cleanup, which kind could not show.
  • net: "" also matches IPv6, so it is not the same as 0.0.0.0/0. kind could not show this with IPv6 off.
  • ProtoPort port is required by the CRD, but calicoctl accepts an item with no port and stores 0.
  • iptablesMarkMask and nftablesMarkMask need at least 6 bits set, not 2. Felix fails with fewer.
  • Felix ignores FELIX_DATASTORETYPE, FELIX_ETCDENDPOINTS and FELIX_ETCDADDR as environment variables for the datastore connection.
  • deviceRouteProtocol: only same-subnet and blackhole routes use protocol 80; VXLAN tunnel routes use 3.
  • The routeTableRange and routeTableRanges YAML forms need a space after each colon.
  • The operator owns nftablesMode in the default FelixConfiguration and overwrites other values.
  • bpfConnectTimeLoadBalancing: with the connect-time load balancer and bpfHostNetworkedNATWithoutCTLB both Disabled, host TCP still reaches some services.
  • bpfConntrackMode, ipv6Support and the PortProto type name in failsafeOutboundHostPorts: the fixes rest partly on code, so they are left out.
  • FeatureGates: no code reads any gate at v3.33.0.
  • bpfPSNATPorts picks ports up to n+m-1, which with the default overlaps the Linux ephemeral range.

Previous attempt: #3073.

Preview the changed page:

Copilot AI lite review requested due to automatic review settings October 20, 2026 12:49
@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for calico-docs-preview-next ready!

Name Link
🔨 Latest commit 8c17b26
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/6ad76374cc5ff324f5f90013
😎 Deploy Preview https://deploy-preview-3138--calico-docs-preview-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview succeeded!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8c17b26
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/6ad763740057a41adf0c2e35
😎 Deploy Preview https://deploy-preview-3138--tigera.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 77 (🟢 up 3 from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Moderate documentation inaccuracies remain in usage reporting, subnet reachability, and string schema descriptions.

6 open issues
What changed in this PR

Updates FelixConfiguration references and parameter metadata for Calico next, v3.33, v3.32, and v3.31 to reflect verified behavior.

Changes:

  • Corrects resource, health, failsafe, protocol, and route-table documentation.
  • Adds missing flow-log fields.
  • Refreshes parameter descriptions, schemas, defaults, and precedence notes.
File Summary
calico/​reference/​resources/​felixconfig.mdx Updates current FelixConfiguration reference.
calico/​_includes/​components/​FelixConfig/​config-params.json Updates current parameter metadata.
calico_versioned_docs/​version-3.33/​reference/​resources/​felixconfig.mdx Updates v3.33 reference.
calico_versioned_docs/​version-3.33/​_includes/​components/​FelixConfig/​config-params.json Updates v3.33 parameter metadata.
calico_versioned_docs/​version-3.32/​reference/​resources/​felixconfig.mdx Updates v3.32 reference.
calico_versioned_docs/​version-3.32/​_includes/​components/​FelixConfig/​config-params.json Updates v3.32 parameter metadata.
calico_versioned_docs/​version-3.31/​reference/​resources/​felixconfig.mdx Updates v3.31 reference.
calico_versioned_docs/​version-3.31/​_includes/​components/​FelixConfig/​config-params.json Updates v3.31 parameter metadata.

Review effort: Lite

Comment on lines +2056 to +2057
"Description": "Controls whether Felix automatically responds to\nARP (IPv4) and NDP (IPv6) requests on host interfaces for local pod IPs and\nselected LoadBalancer VIPs that are in an IP pool with ipipMode and vxlanMode both Never\nand fall within the same subnet as the host interface. When set to PodsAndLoadBalancers, pods and LB VIPs on the host\nsubnet are reachable from the local L2 segment without BGP.",
"DescriptionHTML": "<p>Controls whether Felix automatically responds to\nARP (IPv4) and NDP (IPv6) requests on host interfaces for local pod IPs and\nselected LoadBalancer VIPs that are in an IP pool with ipipMode and vxlanMode both Never\nand fall within the same subnet as the host interface. When set to PodsAndLoadBalancers, pods and LB VIPs on the host\nsubnet are reachable from the local L2 segment without BGP.</p>",
Comment on lines +5683 to +5684
"Description": "Reports anonymous usage data, including the Calico and Kubernetes version numbers, cluster size, and the numbers of endpoints and policies, to projectcalico.org. Logs warnings returned by the usage\nserver. For example, if a significant security vulnerability has been discovered in the version of Calico being used.",
"DescriptionHTML": "<p>Reports anonymous usage data, including the Calico and Kubernetes version numbers, cluster size, and the numbers of endpoints and policies, to projectcalico.org. Logs warnings returned by the usage\nserver. For example, if a significant security vulnerability has been discovered in the version of Calico being used.</p>",
Comment on lines +5163 to +5164
"Description": "Reports anonymous usage data, including the Calico and Kubernetes version numbers, cluster size, and the numbers of endpoints and policies, to projectcalico.org. Logs warnings returned by the usage\nserver. For example, if a significant security vulnerability has been discovered in the version of Calico being used.",
"DescriptionHTML": "<p>Reports anonymous usage data, including the Calico and Kubernetes version numbers, cluster size, and the numbers of endpoints and policies, to projectcalico.org. Logs warnings returned by the usage\nserver. For example, if a significant security vulnerability has been discovered in the version of Calico being used.</p>",
Comment on lines +5426 to +5427
"Description": "Reports anonymous usage data, including the Calico and Kubernetes version numbers, cluster size, and the numbers of endpoints and policies, to projectcalico.org. Logs warnings returned by the usage\nserver. For example, if a significant security vulnerability has been discovered in the version of Calico being used.",
"DescriptionHTML": "<p>Reports anonymous usage data, including the Calico and Kubernetes version numbers, cluster size, and the numbers of endpoints and policies, to projectcalico.org. Logs warnings returned by the usage\nserver. For example, if a significant security vulnerability has been discovered in the version of Calico being used.</p>",
Comment on lines +2056 to +2057
"Description": "Controls whether Felix automatically responds to\nARP (IPv4) and NDP (IPv6) requests on host interfaces for local pod IPs and\nselected LoadBalancer VIPs that are in an IP pool with ipipMode and vxlanMode both Never\nand fall within the same subnet as the host interface. When set to PodsAndLoadBalancers, pods and LB VIPs on the host\nsubnet are reachable from the local L2 segment without BGP.",
"DescriptionHTML": "<p>Controls whether Felix automatically responds to\nARP (IPv4) and NDP (IPv6) requests on host interfaces for local pod IPs and\nselected LoadBalancer VIPs that are in an IP pool with ipipMode and vxlanMode both Never\nand fall within the same subnet as the host interface. When set to PodsAndLoadBalancers, pods and LB VIPs on the host\nsubnet are reachable from the local L2 segment without BGP.</p>",
Comment on lines +5683 to +5684
"Description": "Reports anonymous usage data, including the Calico and Kubernetes version numbers, cluster size, and the numbers of endpoints and policies, to projectcalico.org. Logs warnings returned by the usage\nserver. For example, if a significant security vulnerability has been discovered in the version of Calico being used.",
"DescriptionHTML": "<p>Reports anonymous usage data, including the Calico and Kubernetes version numbers, cluster size, and the numbers of endpoints and policies, to projectcalico.org. Logs warnings returned by the usage\nserver. For example, if a significant security vulnerability has been discovered in the version of Calico being used.</p>",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants