Kubernetes masterサーバにログインし、管理者権限に変更します。詳細は、「第2章 共通の操作」を参照してください。
以下のコマンドを実行し、各コンテナのCPUやメモリの使用状況を確認します。
>docker stats
■コマンドの出力例
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS 245091e24d10 k8s_sidecar_kube-dns-86f4d74b45-72gzt_kube-system_d0c6ea32-75ca-11e8-8e2a-fa163ebf2293_12 0.00% 11.35MiB / 15.51GiB 0.07% 0B / 0B 26.3MB / 0B 6 d6ec90f7fc50 k8s_dnsmasq_kube-dns-86f4d74b45-72gzt_kube-system_d0c6ea32-75ca-11e8-8e2a-fa163ebf2293_12 0.00% 6.652MiB / 15.51GiB 0.04% 0B / 0B 26.7MB / 0B 8 fa82e2f96fa9 k8s_kubedns_kube-dns-86f4d74b45-72gzt_kube-system_d0c6ea32-75ca-11e8-8e2a-fa163ebf2293_12 0.03% 7.785MiB / 170MiB 4.58% 0B / 0B 21.9MB / 0B 8 92e8a08a66b5 k8s_POD_kube-dns-86f4d74b45-72gzt_kube-system_d0c6ea32-75ca-11e8-8e2a-fa163ebf2293_46 0.00% 1.008MiB / 15.51GiB 0.01% 0B / 0B 754kB / 0B 1 dcdc13c871d8 k8s_kube-flannel_kube-flannel-ds-946nk_kube-system_15c0371d-75cb-11e8-8e2a-fa163ebf2293_12 0.06% 11.95MiB / 50MiB 23.90% 0B / 0B 37MB / 0B 9 197fe3b8a585 k8s_kube-proxy_kube-proxy-kdscf_kube-system_d0c12153-75ca-11e8-8e2a-fa163ebf2293_12 0.20% 13.26MiB / 15.51GiB 0.08% 0B / 0B 38.7MB / 0B 7 22afeb5bef41 k8s_POD_kube-flannel-ds-946nk_kube-system_15c0371d-75cb-11e8-8e2a-fa163ebf2293_12 0.00% 632KiB / 15.51GiB 0.00% 0B / 0B 754kB / 0B 1 3f2073019864 k8s_POD_kube-proxy-kdscf_kube-system_d0c12153-75ca-11e8-8e2a-fa163ebf2293_12 0.00% 760KiB / 15.51GiB 0.00% 0B / 0B 754kB / 0B 1 1b8e36b2a736 k8s_kube-scheduler_kube-scheduler-az2-sghpf-service-server-k8s-master-00.novalocal_kube-system_ea66a171667ec4aaf1b274428a42a7cf_12 1.10% 13.53MiB / 15.51GiB 0.09% 0B / 0B 33.4MB / 0B 8 51b9710d51c2 k8s_kube-controller-manager_kube-controller-manager-az2-sghpf-service-server-k8s-master-00.novalocal_kube-system_40750757784d020f8436d95bbb2c8b41_12 4.04% 50MiB / 15.51GiB 0.31% 0B / 0B 86.1MB / 0B 8 90269cdc8b50 k8s_kube-apiserver_kube-apiserver-az2-sghpf-service-server-k8s-master-00.novalocal_kube-system_79b8719bae4c8a4aa0564a49788205d1_12 2.52% 246MiB / 15.51GiB 1.55% 0B / 0B 99.1MB / 0B 8 97c6913b5a04 k8s_etcd_etcd-az2-sghpf-service-server-k8s-master-00.novalocal_kube-system_1277262bf110a238fc0af23289fd8d83_12 1.43% 56.11MiB / 15.51GiB 0.35% 0B / 0B 106MB / 532MB 10 0f82a89baa3b k8s_POD_kube-scheduler-az2-sghpf-service-server-k8s-master-00.novalocal_kube-system_ea66a171667ec4aaf1b274428a42a7cf_12 0.00% 744KiB / 15.51GiB 0.00% 0B / 0B 762kB / 0B 1 37bf4819af59 k8s_POD_kube-controller-manager-az2-sghpf-service-server-k8s-master-00.novalocal_kube-system_40750757784d020f8436d95bbb2c8b41_12 0.00% 624KiB / 15.51GiB 0.00% 0B / 0B 762kB / 0B 1 7cda4497423d k8s_POD_kube-apiserver-az2-sghpf-service-server-k8s-master-00.novalocal_kube-system_79b8719bae4c8a4aa0564a49788205d1_12 0.00% 772KiB / 15.51GiB 0.00% 0B / 0B 754kB / 0B 1 8ef2ad7f8921 k8s_POD_etcd-az2-sghpf-service-server-k8s-master-00.novalocal_kube-system_1277262bf110a238fc0af23289fd8d83_12 0.00% 624KiB / 15.51GiB 0.00% 0B / 0B 754kB / 0B 1