~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2481e38e9a7a k8s.gcr.io/kubernetes-dashboard-amd64 "/dashboard --inse..." 2 minutes ago Up 2 minutes k8s_kubernetes-dashboard_kubernetes-dashboard-77d8b98585-c257p_kube-system_ecd335b0-7469-11e8-b4d7-fa163e1912b6_1
8ca28af62b8f k8s.gcr.io/k8s-dns-sidecar-amd64 "/sidecar --v=2 --..." 3 minutes ago Up 3 minutes k8s_sidecar_kube-dns-54cccfbdf8-tj5rv_kube-system_edee9d35-7469-11e8-b4d7-fa163e1912b6_0
9207d2eb56b2 k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64 "/dnsmasq-nanny -v..." 3 minutes ago Up 3 minutes k8s_dnsmasq_kube-dns-54cccfbdf8-tj5rv_kube-system_edee9d35-7469-11e8-b4d7-fa163e1912b6_0
031dab934bfa k8s.gcr.io/k8s-dns-kube-dns-amd64 "/kube-dns --domai..." 3 minutes ago Up 3 minutes k8s_kubedns_kube-dns-54cccfbdf8-tj5rv_kube-system_edee9d35-7469-11e8-b4d7-fa163e1912b6_1
13fe0b47078a gcr.io/google_containers/pause-amd64:3.0 "/pause" 3 minutes ago Up 3 minutes k8s_POD_kube-dns-54cccfbdf8-tj5rv_kube-system_edee9d35-7469-11e8-b4d7-fa163e1912b6_0
b8560cb57ecb gcr.io/google_containers/pause-amd64:3.0 "/pause" 3 minutes ago Up 3 minutes k8s_POD_kubernetes-dashboard-77d8b98585-c257p_kube-system_ecd335b0-7469-11e8-b4d7-fa163e1912b6_0
不确定现在如何停止所有这些容器。 (最终,我想将此虚拟机作为anothe rk8s集群的一部分)
有帮助吗?
答案 0 :(得分:3)
/etc/kubernetes/kubelet.conf
此文件具有先前与之通信的IP。