Monthly Archives: August 2016

docker usage

$ docker run –name test -d -it debian
275c44472aebd77c926d4527885bb09f2f6db21d878c75f0a1c212c03d3bcfab
$ docker attach test

docker commit 255efb733f97 minggr/nvmeof

docker login -u <user> -p <password>

docker push minggr/nvmeof
docker pull minggr/nvmeof

k8s volume plugin flow

kubernetes/cmd/kubelet/app/server.go:
Run() -> run() -> RunKubelet() -> RunOnce()

kubernetes/pkg/kubelet/runonce.go:
RunOnce() -> runOnce() -> runPod() -> syncPod()

kubernetes/pkg/kubelet/kubelet.go:
syncPod() -> mountExternalVolumes()

kubernetes/pkg/kubelet/volumes.go:
mountExternalVolumes() -> mounter.SetUp(fsGroup)

kubernetes/pkg/volume/nvmef/nvmef.go:
SetUp()->SetUpAt()->diskSetUp

kubernetes/pkg/volume/nvmef/disk_manager.go:
diskSetUp() -> manager.AttachDisk()

kubernetes/pkg/volume/nvmef/nvmef_util.go:
func (util *NVMEFUtil) AttachDisk(b nvmefDiskMounter) error