Skip to main content
Calico Open Source 3.33 (latest) documentation

Node

A node resource (Node) represents a node running Calico. Each host in a Calico cluster has a node resource which contains the configuration for the calico/node instance running on the host.

When starting a calico/node instance, the name supplied to the instance should match the name configured in the Node resource.

By default, starting a calico/node instance will automatically create a node resource using the hostname of the compute host. With the Kubernetes API datastore, the node resource is instead the Kubernetes node of the same name, and you cannot create a node resource with calicoctl.

Sample YAML​

apiVersion: projectcalico.org/v3
kind: Node
metadata:
name: node-hostname
spec:
bgp:
asNumber: 64512
ipv4Address: 10.244.0.1/24
ipv6Address: 2001:db8:85a3::8a2e:370:7334/120
ipv4IPIPTunnelAddr: 192.168.0.1

Definition​

Metadata​

FieldDescriptionAccepted ValuesSchema
nameThe name of this node. Required.Lowercase alphanumeric string with optional . or -.string

Spec​

FieldDescriptionAccepted ValuesSchemaDefault
bgpBGP configuration for this node. Omit if using Calico for policy only.BGP
ipv4VXLANTunnelAddrIPv4 address of the VXLAN tunnel. This is system configured and should not be updated manually.string
vxlanTunnelMACAddrMAC address of the IPv4 VXLAN tunnel. If not set, Felix generates the MAC address from the node name.string
ipv6VXLANTunnelAddrIPv6 address of the VXLAN tunnel. This is system configured and should not be updated manually.string
vxlanTunnelMACAddrV6MAC address of the IPv6 VXLAN tunnel. This is system configured and should not be updated manually.string
orchRefsCorrelates this node to a node in another orchestrator.list of OrchRefs
wireguardWireGuard configuration for this node. This is applicable only if WireGuard is enabled in Felix Configuration.WireGuard
addressesAddresses at which the node can be reached. With the Kubernetes API datastore, this is system configured and should not be updated manually.list
interfacesInterfaces on the node and their addresses. This is system configured and should not be updated manually.list

OrchRef​

FieldDescriptionAccepted ValuesSchemaDefault
nodeNameName of this node according to the orchestrator.string
orchestratorName of the orchestrator.k8sstring

BGP​

FieldDescriptionAccepted ValuesSchemaDefault
asNumberThe AS Number of your calico/node.Optional. If omitted the global value is used (see example modifying Global BGP settings for details about modifying the asNumber setting).integer
ipv4AddressThe IPv4 address and subnet exported as the next-hop for the Calico endpoints on the hostThe IPv4 address must be specified if BGP is enabled.string
ipv6AddressThe IPv6 address and subnet exported as the next-hop for the Calico endpoints on the hostOptionalstring
ipv4IPIPTunnelAddrIPv4 address of the IP-in-IP tunnel. This is system configured and should not be updated manually.Optional IPv4 addressstring
routeReflectorClusterIDEnables this node as a route reflector within the given clusterOptional IPv4 addressstring

WireGuard​

FieldDescriptionAccepted ValuesSchemaDefault
interfaceIPv4AddressThe IP address for the IPv4 WireGuard interface created by Felix on this node.Optionalstring
interfaceIPv6AddressThe IP address for the IPv6 WireGuard interface created by Felix on this node.Optionalstring