小编wan*_*zhe的帖子

kubernetes持久卷访问模式

看来,Kubernetes支持3类型的接入模式持续量:ReadWriteOnce,ReadOnlyMany,ReadWriteMany.我真的很好奇使用ReadWriteOnce模式卷的pod的调度程序策略.例如,我创建了一个具有pod num = 2的RC,我猜这两个pod将被安排到同一主机,因为它们使用具有ReadWriteOnce模式的卷?我真的想知道这部分的源代码.

volume persistent-storage kubernetes

13
推荐指数
3
解决办法
1万
查看次数

如何在golang MPG模型中获得g

我正在阅读 golang(go1.6.2 linux/amd64) 的一些运行时代码,有人可以帮助我理解 runtime/stubs.go 文件中 getg() 函数的底层机制吗?

// getg returns the pointer to the current g.
// The compiler rewrites calls to this function into instructions
// that fetch the g directly (from TLS or from the dedicated register).
func getg() *g
Run Code Online (Sandbox Code Playgroud)

getg() 函数在这里如何操作?这个函数的主体是什么?

runtime go

3
推荐指数
1
解决办法
769
查看次数

标签 统计

go ×1

kubernetes ×1

persistent-storage ×1

runtime ×1

volume ×1