--api-rate-limit string API rate limiting configuration (example: --api-rate-limit endpoint-create=rate-limit:10/m,rate-burst:2)
--auto-create-cilium-node-resource Automatically create CiliumNode resource for own node on startup (default true)
--auto-direct-node-routes Enable automatic L2 routing between nodes
+ --azure-interface-name string InterfaceName the cilium-operator will use to allocate all the IPs on at the node level
--bgp-router-id-allocation-ip-pool string IP pool to allocate the BGP router-id from when the mode is 'ip-pool'
--bgp-router-id-allocation-mode string BGP router-id allocation mode. Currently supported values: 'default' or 'ip-pool' (default "default")
--bpf-auth-map-max int Maximum number of entries in auth map (default 524288)
--agent-labels strings Additional labels to identify this agent in monitor events
--agent-liveness-update-interval duration Interval at which the agent updates liveness time for the datapath (default 1s)
--api-rate-limit string API rate limiting configuration (example: --api-rate-limit endpoint-create=rate-limit:10/m,rate-burst:2)
+ --azure-interface-name string InterfaceName the cilium-operator will use to allocate all the IPs on at the node level
--bpf-lb-algorithm string BPF load balancing algorithm ("random", "maglev") (default "random")
--bpf-lb-algorithm-annotation Enable service-level annotation for configuring BPF load balancing algorithm
--bpf-lb-dsr-dispatch string BPF load balancing DSR dispatch method ("opt", "ipip", "geneve") (default "opt")
--agent-labels strings Additional labels to identify this agent in monitor events
--agent-liveness-update-interval duration Interval at which the agent updates liveness time for the datapath (default 1s)
--api-rate-limit string API rate limiting configuration (example: --api-rate-limit endpoint-create=rate-limit:10/m,rate-burst:2)
+ --azure-interface-name string InterfaceName the cilium-operator will use to allocate all the IPs on at the node level
--bpf-lb-algorithm string BPF load balancing algorithm ("random", "maglev") (default "random")
--bpf-lb-algorithm-annotation Enable service-level annotation for configuring BPF load balancing algorithm
--bpf-lb-dsr-dispatch string BPF load balancing DSR dispatch method ("opt", "ipip", "geneve") (default "opt")
ENIUsePrimaryAddress: defaults.UseENIPrimaryAddress,
ENIDisablePrefixDelegation: defaults.ENIDisableNodeLevelPD,
ENIDeleteOnTermination: defaults.ENIDeleteOnTermination,
+
+ AzureInterfaceName: "",
}
type config struct {
ENIUsePrimaryAddress bool
ENIDisablePrefixDelegation bool
ENIDeleteOnTermination bool
+
+ AzureInterfaceName string
}
func (c config) Flags(flags *pflag.FlagSet) {
flags.Bool("eni-use-primary-address", c.ENIUsePrimaryAddress, "Whether an ENI's primary address should be available for allocations on the node at the node level")
flags.Bool("eni-disable-prefix-delegation", c.ENIDisablePrefixDelegation, "Whether ENI prefix delegation should be disabled on this node at the node level")
flags.Bool("eni-delete-on-termination", c.ENIDeleteOnTermination, "Whether the ENI should be deleted when the associated instance is terminated at the node level")
+
+ flags.String("azure-interface-name", c.AzureInterfaceName, "InterfaceName the cilium-operator will use to allocate all the IPs on at the node level")
}
// consistent results.
nodeResource.Spec.InstanceID = strings.ToLower(strings.TrimPrefix(ln.Local.ProviderID, azureTypes.ProviderPrefix))
+ nodeResource.Spec.IPAM.MinAllocate = n.config.IPAMMinAllocate
+ nodeResource.Spec.IPAM.PreAllocate = n.config.IPAMPreAllocate
+ nodeResource.Spec.IPAM.MaxAllocate = n.config.IPAMMaxAllocate
+ nodeResource.Spec.IPAM.StaticIPTags = n.config.IPAMStaticIPTags
+ nodeResource.Spec.Azure.InterfaceName = n.config.AzureInterfaceName
+
if c := n.cniConfigManager.GetCustomNetConf(); c != nil {
if c.IPAM.MinAllocate != 0 {
nodeResource.Spec.IPAM.MinAllocate = c.IPAM.MinAllocate