我想使用Kubernetes在我的裸机服务器上本地运行Kafka Cluster。我指的是https://github.com/Yolean/kubernetes-kafka中提到的设置。但是在此设置中,需要进行哪些更改才能使其在裸机集群上正常工作?将#test image
img=cv
imread('test.jpg')
r,g,b=cv2.split(img)
#spliting b,g,r and getting differences between them
r_g=np.count_nonzero(abs(r-g))
r_b=np.count_nonzero(abs(r-b))
g_b=np.count_nonzero(abs(g-b))
diff_sum=float(r_g+r_b+g_b)
#finding ratio of diff_sum with respect to size of image
ratio=diff_sum/img.size
if ratio>0.005:
label='color'
else:
label='grey'
更改为StorageClass
就足够了吗?
除了我上面提到的以外,还有其他任何Kafka Kubernetes设置吗?