kube-ovn ovs port 命名

ovs port 网卡实际上使用 pod id 的前 12 位字符作为 uniq ud

bash 复制代码
[root@deployer]# crictl ps -a | head -n 3
CONTAINER           IMAGE               CREATED                  STATE               NAME                                   ATTEMPT             POD ID              POD
df8d4d057b0f4       dc7fdc8dafe00       Less than a second ago   Created             arkcbr-cdm-director-job                56                  0c8a6b00e87c9       arkcbr-cdm-director-job-86c94c9d48-6lcj9
09a09c696e98e       b43460e4208f4       6 seconds ago            Running             nginx                                  857                 fb8d8582f334c       grafana-deploy-78db84cbbb-twldh

[root@deployer]# ip a | grep fb8d8582f334
278455: fb8d8582f334_h@if278454: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000

比如 pinger

bash 复制代码
[root@ deployer]# kgp | grep pinger
kube-system                         kube-ovn-pinger-d7s4z                                           1/1     Running                0          4h52m   10.222.0.22                     csy-wx-pm-os01-eis-node04   <none>           <none>
kube-system                         kube-ovn-pinger-m7qdd                                           1/1     Running                1          4h53m   10.222.0.21                     csy-wx-pm-os01-eis-node02   <none>           <none>
kube-system                         kube-ovn-pinger-n6sfp                                           1/1     Running                0          4h51m   10.222.0.36                     csy-wx-pm-os01-eis-node01   <none>           <none>
kube-system                         kube-ovn-pinger-qjxjq                                           1/1     Running                0          4h51m   10.222.0.34                        <none>           <none>
[root@ deployer]#
[root@ deployer]# crictl ps -a | grep kube-ovn-pinger-qjxjq
4c76557149ec2       e8cc1f97d5302       5 hours ago          Running             pinger                                 0                   b74d75ea9d770       kube-ovn-pinger-qjxjq
[root@ deployer]# ip a | grep b74d75ea9d77
296369: b74d75ea9d77_h@if296368: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
[root@ deployer]# kgp | grep ovn-cni
kube-system                         kube-ovn-cni-45r5r                                              1/1     Running                0          4h53m   10.251.137.30                   csy-wx-pm-os01-eis-node01   <none>           <none>
kube-system                         kube-ovn-cni-8pgr8                                              1/1     Running                0          4h53m   10.251.137.32                      <none>           <none>
kube-system                         kube-ovn-cni-wp7bs                                              1/1     Running                1          4h53m   10.251.137.33                   csy-wx-pm-os01-eis-node04   <none>           <none>
kube-system                         kube-ovn-cni-zl26k                                              1/1     Running                1          4h53m   10.251.137.31                   csy-wx-pm-os01-eis-node02   <none>           <none>
[root@ deployer]# k exec -it -n kube-system                         kube-ovn-cni-8pgr8 -- bash
Defaulted container "cni-server" out of: cni-server, install-cni (init)
root@:/kube-ovn# ovs-vsctl show | grep b74d75ea9d77_h
        Port b74d75ea9d77_h
            Interface b74d75ea9d77_h
相关推荐
h***67377 小时前
SpringBoot整合easy-es
spring boot·后端·elasticsearch
S***267513 小时前
基于SpringBoot和Leaflet的行政区划地图掩膜效果实战
java·spring boot·后端
@大迁世界15 小时前
相信我兄弟:Cloudflare Rust 的 .unwrap() 方法在 330 多个数据中心引发了恐慌
开发语言·后端·rust
5***g29815 小时前
新手如何快速搭建一个Springboot项目
java·spring boot·后端
2***B44916 小时前
Rust在系统编程中的内存安全
开发语言·后端·rust
U***e6316 小时前
Rust错误处理最佳实践
开发语言·后端·rust
q***471816 小时前
Spring中的IOC详解
java·后端·spring
码事漫谈17 小时前
C++小白最容易踩的10个坑(附避坑指南)
后端
码事漫谈18 小时前
性能提升11.4%!C++ Vector的reserve()方法让我大吃一惊
后端
稚辉君.MCA_P8_Java18 小时前
Gemini永久会员 Java中的四边形不等式优化
java·后端·算法