2.6. 从正在运行的集群获取 OVS 接口的快照
快照代表 OVS 接口在特定时间点的状态和数据。
流程
要查看正在运行的 MicroShift 集群中 OVS 接口的快照,请使用以下命令:
$ sudo ovs-vsctl show正在运行的集群中的 OVS 接口示例
9d9f5ea2-9d9d-4e34-bbd2-dbac154fdc93 Bridge br-ex Port br-ex Interface br-ex type: internal Port patch-br-ex_localhost.localdomain-to-br-int1 Interface patch-br-ex_localhost.localdomain-to-br-int type: patch options: {peer=patch-br-int-to-br-ex_localhost.localdomain}2 Bridge br-int fail_mode: secure datapath_type: system Port patch-br-int-to-br-ex_localhost.localdomain Interface patch-br-int-to-br-ex_localhost.localdomain type: patch options: {peer=patch-br-ex_localhost.localdomain-to-br-int} Port eebee1ce5568761 Interface eebee1ce55687613 Port b47b1995ada84f4 Interface b47b1995ada84f44 Port "3031f43d67c167f" Interface "3031f43d67c167f"5 Port br-int Interface br-int type: internal Port ovn-k8s-mp06 Interface ovn-k8s-mp0 type: internal ovs_version: "2.17.3"- 1
patch-br-ex_localhost.localdomain-to-br-int和patch-br-int-to-br-ex_localhost.localdomain是连接br-ex和br-int的 OVS 补丁端口。- 2
patch-br-ex_localhost.localdomain-to-br-int和patch-br-int-to-br-ex_localhost.localdomain是连接br-ex和br-int的 OVS 补丁端口。- 3
- pod 接口
eebee1ce5568761使用 pod 沙盒 ID 的前 15 位命名,并插入到br-int网桥中。 - 4
- pod 接口
b47b1995ada84f4使用 pod 沙盒 ID 的前 15 位命名,并插入到br-int网桥中。 - 5
- pod 接口
3031f43d67c167f使用 pod 沙盒 ID 的前 15 位命名,并插入到br-int网桥中。 - 6
- hairpin 流量的 OVS 内部端口,
ovn-k8s-mp0由ovnkube-master容器创建。