云计算

cinder-csi 为什么要用pod网络,直接用host网络不

2021-08-03  本文已影响0人  cloudFans
image.png


[root@pro-master-01 ~]# kubectl get ds -n kube-system csi-cinder-nodeplugin -o yaml  | grep 'hostNetwork: true'
      hostNetwork: true

kubectl get -n kube-system rs csi-cinder-controllerplugin-679dfdfdf -o yaml| grep hostNetwork
# 感觉只需要仿照配置上行 以hostnetwork运行即可,不需要浪费一个pod ip 


[root@pro-master-01 ~]# kubectl logs -f -n kube-system csi-cinder-controllerplugin-679dfdfdf-qngpm
error: a container name must be specified for pod csi-cinder-controllerplugin-679dfdfdf-qngpm, choose one of: [csi-attacher csi-provisioner csi-snapshotter csi-resizer cinder-csi-plugin]
[root@pro-master-01 ~]# 
[root@pro-master-01 ~]# 
[root@pro-master-01 ~]# 
[root@pro-master-01 ~]# kubectl logs -f -n kube-system cinder-csi-plugin
Error from server (NotFound): pods "cinder-csi-plugin" not found
[root@pro-master-01 ~]# kubectl logs -f -n kube-system csi-cinder-controllerplugin-679dfdfdf-qngpm cinder-csi-plugin
I0803 01:42:24.121754       1 driver.go:69] Driver: cinder.csi.openstack.org
I0803 01:42:24.121804       1 driver.go:70] Driver version: 1.2.2@v1.20.0
I0803 01:42:24.121808       1 driver.go:71] CSI Spec version: 1.2.0
I0803 01:42:24.121816       1 driver.go:100] Enabling controller service capability: LIST_VOLUMES
I0803 01:42:24.121821       1 driver.go:100] Enabling controller service capability: CREATE_DELETE_VOLUME
I0803 01:42:24.121824       1 driver.go:100] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0803 01:42:24.121827       1 driver.go:100] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0803 01:42:24.121830       1 driver.go:100] Enabling controller service capability: LIST_SNAPSHOTS
I0803 01:42:24.121833       1 driver.go:100] Enabling controller service capability: EXPAND_VOLUME
I0803 01:42:24.121836       1 driver.go:100] Enabling controller service capability: CLONE_VOLUME
I0803 01:42:24.121839       1 driver.go:100] Enabling controller service capability: LIST_VOLUMES_PUBLISHED_NODES
I0803 01:42:24.121843       1 driver.go:112] Enabling volume access mode: SINGLE_NODE_WRITER
I0803 01:42:24.121855       1 driver.go:122] Enabling node service capability: STAGE_UNSTAGE_VOLUME
I0803 01:42:24.121860       1 driver.go:122] Enabling node service capability: EXPAND_VOLUME
I0803 01:42:24.121867       1 driver.go:122] Enabling node service capability: GET_VOLUME_STATS
I0803 01:42:24.122376       1 openstack.go:88] Block storage opts: {0 false false}
W0803 01:42:54.123178       1 main.go:108] Failed to GetOpenStackProvider: Post "http://10.120.12.99:35357/v3/auth/tokens": dial tcp 10.120.12.99:35357: i/o timeout

目前使用的是 pod 多网卡场景, cinder csi竟然不是host 网络模式,感觉设计有问题吧,控制面的服务应该是host模式吧

image.png

kubectl logs -f -n kube-system csi-cinder-controllerplugin-679dfdfdf-qngpm cinder-csi-plugin

上一篇下一篇

猜你喜欢

热点阅读