20221019-Cilium ConfigMap - 图1

    1. 1.debug:
    2. debug - Sets to run Cilium in full debug mode, which enables verbose logging and configures eBPF programs to emit more visibility events into the output of cilium monitor.
    3. 2.IPV4/6:
    4. enable-ipv4 - Enable IPv4 addressing support
    5. enable-ipv6 - Enable IPv6 addressing support
    6. 3.clean-cilium-bpf-state
    7. clean-cilium-bpf-state - Removes all eBPF state from the filesystem on startup. Endpoints will be restored with the same IP addresses, but ongoing connections may be briefly disrupted and loadbalancing decisions will be lost, so active connections via the loadbalancer will break. All eBPF state will be reconstructed from their original sources (for example, from kubernetes or the kvstore). This may be used to mitigate serious issues regarding eBPF maps. This option should be turned off again after restarting the daemon.
    8. // 解读:This option should be turned off again after restarting the daemon.
    9. 4.clean-cilium-state
    10. clean-cilium-state - Removes all Cilium state, including unrecoverable information such as all endpoint state, as well as recoverable state such as eBPF state pinned to the filesystem, CNI configuration files, library code, links, routes, and other information. This operation is irreversible. Existing endpoints currently managed by Cilium may continue to operate as before, but Cilium will no longer manage them and they may stop working without warning. After using this operation, endpoints must be deleted and reconnected to allow the new instance of Cilium to manage them.
    11. 5.monitor-aggregation
    12. monitor-aggregation - This option enables coalescing of tracing events in cilium monitor to only include periodic updates from active flows, or any packets that involve an L4 connection state change. Valid options are none, low, medium, maximum.
    13. 6.preallocate-bpf-maps
    14. preallocate-bpf-maps - Pre-allocation of map entries allows per-packet latency to be reduced, at the expense of up-front memory allocation for the entries in the maps. Set to true to optimize for latency. If this value is modified, then during the next Cilium startup connectivity may be temporarily disrupted for endpoints with active connections.
    15. 7.datapath
    16. By default, datapath debug messages are disabled, and therefore not shown in cilium monitor -v output. To enable them, add "datapath" to the debug-verbose option.
    17. cilium monitor -vv view log
    18. 8.核心配置选项,可以在cilium启动的时候观察其启动的Log
    19. kubectl -nkube-system logs -f cilium-xxxxxx
    20. ...