Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.48 KB

kmesh_commands-zh.md

File metadata and controls

54 lines (43 loc) · 1.48 KB

Kmesh命令说明

  • kmesh-daemon
# kmesh-daemon -h
Start kmesh daemon

Usage:
  kmesh-daemon [flags]

Flags:
      --bpf-fs-path string     bpf fs path (default "/sys/fs/bpf")
      --cgroup2-path string    cgroup2 path (default "/mnt/kmesh_cgroup2")
      --cni-etc-path string    cni etc path (default "/etc/cni/net.d")
      --conflist-name string   cni conflist name
      --enable-mda             enable mda
  -h, --help                   help for kmesh-daemon
      --mode string            controller plane mode, valid values are [ads, workload] (default "ads")
      --plugin-cni-chained     kmesh cni plugins chained to anthor cni (default true)

# example
./kmesh-daemon --mode=ads
# example
./kmesh-daemon --mode=workload
# example
./kmesh-daemon --mode=ads --enable-mda
# example
./kmesh-daemon --mode=workload --enable-mda
  • 运维相关

    # curl http://localhost:15200/help
    	/help: print list of commands
    	/options: print config options
    	/bpf/kmesh/maps: print bpf kmesh maps in kernel
    	/controller/envoy: print control-plane in envoy cache
    	/controller/kubernetes: print control-plane in kubernetes cache
    
    # example
    curl http://localhost:15200/bpf/kmesh/maps
    curl http://localhost:15200/options
  • 命令使用注意事项

    • -bpf-fs-path参数指定的path要求是bpf文件系统路径;如:

      [root@localhost Kmesh]# mount | grep "/sys/fs/bpf"
      none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)