I created a single master and 2 worker cluster using Kops on AWS. Now for my experiment, I need to kill the pod on a worker and check the kubelet logs to know:
When the pod was removed from service endpoint list?
When a new pod container got recreated?
When the new pod container was assigned the new IP Address?
While when I created an on-prem cluster using kubeadm, I could see all the information (like the one mentioned above) in the kubelet logs of the worker node (whose pod was killed).
I do not see detailed kubelet logs like this, specially logs related to assignment of IP address in Kops created K8s cluster.
How to get the information mentioned above in the cluster created using kops?
journalctl -u kubelet
or else if you can ssh you can directly access the logs file. – Harsh Manvar