Skip to content

Latest commit

 

History

History
26 lines (25 loc) · 1.05 KB

README.org

File metadata and controls

26 lines (25 loc) · 1.05 KB

kubernetes-yaml

可通过使用 nsenter 将 container 中的程序跑在宿主机上,eg:

"nsenter",
"--target=1",
"--mount",
"--wd=./",
"--",
"./hyperkube",
"kubelet",
"--kubeconfig=/etc/kubernetes/kubelet.conf",
"--require-kubeconfig=true",
"--pod-manifest-path=/etc/kubernetes/manifests",
"--network-plugin=cni",
"--cni-conf-dir=/etc/cni/net.d",
"--cni-bin-dir=/opt/cni/bin",
"--cluster-dns=10.0.0.10",
"--allow-privileged=true",
"--pod-infra-container-image=192.168.1.12/pause_containers/pause-amd64:3.0",
"--v=2",
"--address=0.0.0.0",
"--enable-server",
"--cluster-dns=10.0.0.10",
"--cluster-domain=cluster.local"