# ovn-central
# 查看北向db raft集群状态
ovs-appctl -t /run/ovn/ovnnb_db.ctl cluster/status OVN_Northbound
# 优雅删除北向raft node id
ovs-appctl -v -t /run/ovn/ovnnb_db.ctl cluster/leave OVN_Northbound [node 4位id]
# 强制删除北向raft node id
ovs-appctl -v -t /run/ovn/ovnnb_db.ctl cluster/kick OVN_Northbound [node 4位id]
# 根据北向db ip+端口查看bfd
ovn-nbctl --db=tcp:[x.x.x.x]:xxx list bfd
# 查看南向db raft集群状态
ovs-appctl -t /run/ovn/ovnsb_dbctl cluster/status OVN_Southbound
# 查看南向逻辑流表
ovn-sbctl lflow-list
# 查看南向db ls/lr vni
kubectl ko sbctl get datapath_binding [名称] tunnel_key
# 查看南向db port_binding ingress和egress port
kubectl ko sbctl get port_binding [名称] tunnel_key
# trace
# 查看Pod出方向匹配的流表
kubectl ko trace [namespace]/[pod-name] [目的ip] [icmp/tcp/udp]
# ovn-controller
# 查询ovn探测间隔时间
ovs-vsctl get open . external-ids:ovn-remote-probe-interval
标签:node,ovs,查看,db,cluster,常用命令,kube,ovn From: https://www.cnblogs.com/WJQ2017/p/18679912