Skip to content

No way to specify Cilium native routing CIDR except via helm values file? #741

@codepainters

Description

@codepainters

I've tried creating a cluster with Cilium native routuing mode, unfortunately it leads to a cilium pod crash loop:

time="2026-02-20T09:42:41.876171907Z" level=fatal msg="invalid daemon configuration: native routing cidr must be configured with option --ipv4-native-routing-cidr in combination with --enable-ipv4=true --enable-ipv4-masquerade=true --enable-ip-masq-agent=false --routing-mode=native --ipam=kubernetes" subsys=daemon

Indeed, I can't find any code reference including ipv4NativeRoutingCIDR while setting the routing mode is possible:

template_vars = {
encryption_enabled: settings.networking.cni.encryption,
encryption_type: cilium_config.encryption_type || DEFAULT_ENCRYPTION_TYPE,
routing_mode: cilium_config.routing_mode || DEFAULT_ROUTING_MODE,
tunnel_protocol: cilium_config.tunnel_protocol || DEFAULT_TUNNEL_PROTOCOL,
hubble_enabled: cilium_config.hubble_enabled || true,
hubble_metrics: build_hubble_metrics_array(cilium_config.hubble_metrics),
hubble_relay_enabled: cilium_config.hubble_relay_enabled || true,
hubble_ui_enabled: cilium_config.hubble_ui_enabled || true,
k8s_service_host: cilium_config.k8s_service_host || DEFAULT_K8S_SERVICE_HOST,
k8s_service_port: cilium_config.k8s_service_port || DEFAULT_K8S_SERVICE_PORT,
operator_replicas: cilium_config.operator_replicas || DEFAULT_OPERATOR_REPLICAS,
operator_memory_request: cilium_config.operator_memory_request || DEFAULT_OPERATOR_MEMORY_REQUEST,
agent_memory_request: cilium_config.agent_memory_request || DEFAULT_AGENT_MEMORY_REQUEST,
egress_gateway_enabled: settings.networking.cni.cilium_egress_gateway,
}

Perhaps it is worth adding?

Also - is there any way to render the helm values template for review / customization ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions