Summary:
This article has location of common K8s Cluster files/logs on Master and Nodes (Linux & Windows)
Applies to k8s Cluster with Master and Linux & Windows Node.
Log location of common logs and files
Master
Manifest, Certificates and Configuration:
Kubernetes Configuration Files
jimmycater@master:/etc$ cd kubernetes
jimmycater@master:/etc/kubernetes$ ls
admin.conf controller-manager.conf kubelet.conf manifests pki scheduler.conf
Manifest files for System Pods: API Server, Scheduler, etcd and Control Manager
jimmycater@master:/etc/kubernetes$ cd manifests
jimmycater@master:/etc/kubernetes/manifests$ ls
etcd.yaml kube-apiserver.yaml kube-controller-manager.yaml kube-scheduler.yaml
Certificate Key-pair
jimmycater@master:/etc/kubernetes$ cd pki
jimmycater@master:/etc/kubernetes/pki$ ls
apiserver.crt apiserver.key ca.crt front-proxy-ca.crt front-proxy-client.key
apiserver-etcd-client.crt apiserver-kubelet-client.crt ca.key front-proxy-ca.key sa.key
apiserver-etcd-client.key apiserver-kubelet-client.key etcd front-proxy-client.crt sa.pub
Logs: /var/log/pods | /var/log/containers
jimmycater@master:/var/log$ cd pods
jimmycater@master:/var/log/pods$ ls
kube-system_coredns-66bff467f8-bxmhl_383c6535-9cf3-4edc-951f-ce50619326ca kube-system_kube-controller-manager-master_258e882f9d3be1350aa1c1b7ecf4535e
kube-system_coredns-66bff467f8-rsjpp_229ea959-541f-4030-9dde-9c520e5b28c5 kube-system_kube-flannel-ds-amd64-kdsc4_633004b3-c61c-4620-a5ce-57c727fa1081
kube-system_etcd-master_9c6a1d79e069661ae91ac39153b3504a kube-system_kube-proxy-kq9dx_9a48b55d-24df-4e43-bd61-61bac2eabb7a
kube-system_kube-apiserver-master_80eae403c9c411174572392cd522c46d kube-system_kube-scheduler-master_3dd66788a2c7782d910d05ea37b91678
Container Logs
jimmycater@master:/var/log$ cd containers
jimmycater@master:/var/log/containers$ ls
coredns-66bff467f8-bxmhl_kube-system_coredns-67a0749e04cdd41fda9a54f69a03d3fe98bd3601694fb6fd982883b8b3bf9bb0.log
coredns-66bff467f8-bxmhl_kube-system_coredns-d932c25f3d45ef7b24b3baf1c0049942370fb1e302d31f3eb677994d2f86ee1c.log
coredns-66bff467f8-rsjpp_kube-system_coredns-425151d80cc32faed2317c8f660bbd9d28d474c5fd8d654aaba560adb43e2350.log
coredns-66bff467f8-rsjpp_kube-system_coredns-d833b3d8dc3001bb5c8cb1b8395b40fdfa9be5659d64903ba29fc6d4265d8d52.log
etcd-master_kube-system_etcd-477492229cfeb302b697d05776c31965408784c9567da3dfe62301edd50448b0.log
etcd-master_kube-system_etcd-f60beb658ea501934254d6346b0c96c616c865e980fdc7991e5ef760563cf497.log
kube-apiserver-master_kube-system_kube-apiserver-176ee70c387310dc252a9120423a15796121a1cc6b03f514bc37e6eee3b6944f.log
kube-apiserver-master_kube-system_kube-apiserver-bcae2c16b6020de1b045db6d0ad3f8f1a4881114829b21be22068779ce5f86a1.log
kube-controller-manager-master_kube-system_kube-controller-manager-4ca91fc2a5966e62605406a5824e9705739b752afd636ddad40286a74132aec5.log
kube-controller-manager-master_kube-system_kube-controller-manager-6a03f34eed3b1aff5077dc8b084e69d4a65f8bbfbebda81f9228b8cc67f751ef.log
kube-flannel-ds-amd64-kdsc4_kube-system_install-cni-7e1fbabcfcb41f291fa0c254204151b3038a84eb2b1ba8956c1a26bd0db026bd.log
kube-flannel-ds-amd64-kdsc4_kube-system_kube-flannel-2a6d1fda40c40228e0953600e5bfa4d67143a1e2494a6ea06a8e3d74cd0ef779.log
kube-flannel-ds-amd64-kdsc4_kube-system_kube-flannel-97c15e0aee0dcec855155b2ea21a5b00af04ed5fa7ce7e594065a67e08c6f92a.log
kube-proxy-kq9dx_kube-system_kube-proxy-0c5b1b95a148e6c09734bfcb84d8172b4c290e25192b7f0eebd37d074f60f895.log
kube-proxy-kq9dx_kube-system_kube-proxy-9647d8834356eea2ab6f53c3c6095e359e2e809a6389c5611832f7a5388b031c.log
kube-scheduler-master_kube-system_kube-scheduler-aa9fa4454222b217222161b11ff609b8164de0d77d1ce2650ae707b9a1a3f019.log
kube-scheduler-master_kube-system_kube-scheduler-fb75cfd3ca6272d3e83e43fc8e48ce0d90a5133789ee068cc15d9354538f073d.log
Manifest, Certificates and Configuration: On Linux Node:
jimmycater@linux-node:/etc$ cd kubernetes
jimmycater@linux-node:/etc/kubernetes$ ls
kubelet.conf manifests pki
jimmycater@linux-node:/etc/kubernetes$ cd manifests
jimmycater@linux-node:/etc/kubernetes/manifests$ ls
jimmycater@linux-node:/etc/kubernetes$ cd pki
jimmycater@linux-node:/etc/kubernetes/pki$ ls
ca.crt
On Node: Window Server
When the Windows Node join k8s Cluster, following folders are created in C:\
Common Linux Directory:
/var Variable data, most notably log files.
/usr User related programs.
/opt Optional or third party software.
/etc System configuration files.
/home Home directories.
/run Run-time variable data: Information about the running system since last boot
/bin Binaries and other executable programs.
/lib Libraries essential for the binaries in /bin and /sbin.
Pod Configuration:
C:\var\lib\kubelet\pods
Kubelet Certificate
C:\var\lib\kubelet\pki
Pod Network Configuration:
C:\var\lib\cni
Pod and Container Logs:
C:\var\log