[root@rmaster01 ~]# cd /var/log/pods/
[root@rmaster01 pods]# ll
total 0
drwxr-xr-x 3 root root 19 Mar 4 20:19 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63
drwxr-xr-x 6 root root 86 Mar 4 01:11 kube-system_canal-wczbn_57f5d36a-7394-4e0a-899e-b5024c146ae6
drwxr-xr-x 3 root root 35 Mar 4 01:11 kube-system_rke-coredns-addon-deploy-job-snjhp_86e836c3-416d-4e6d-bda8-9be94c48a579
drwxr-xr-x 3 root root 40 Mar 4 01:11 kube-system_rke-ingress-controller-deploy-job-2fvsw_db582a24-a2dc-45f4-b7be-5558065fc747
drwxr-xr-x 3 root root 35 Mar 4 01:11 kube-system_rke-metrics-addon-deploy-job-8drtr_61c5303b-7bb5-43fd-9347-be25942d25a9
drwxr-xr-x 3 root root 36 Mar 4 01:11 kube-system_rke-network-plugin-deploy-job-tpt48_1b54a5c1-935d-498a-967b-ff2c4174fcc7
[root@rmaster01 pods]# cd cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63/
[root@rmaster01 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63]# ll
total 0
drwxr-xr-x 2 root root 19 Mar 4 20:19 agent
[root@rmaster01 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63]# cat agent/
cat: agent/: Is a directory
[root@rmaster01 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63]# ll
total 0
drwxr-xr-x 2 root root 19 Mar 4 20:19 agent
[root@rmaster01 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63]# cd agent/
[root@rmaster01 agent]# ll
total 0
lrwxrwxrwx 1 root root 165 Mar 4 20:19 0.log -> /var/lib/docker/containers/52ef057b8a598ba018e890fe4f758a73e4bbf6a2edb64bdb7faf8359545507d8/52ef057b8a598ba018e890fe4f758a73e4bbf6a2edb64bdb7faf8359545507d8-json.log
[root@rmaster01 agent]# cat 0.log
{"log":"INFO: Environment: CATTLE_ADDRESS=192.168.6.100 CATTLE_AGENT_CONNECT=true CATTLE_CA_CHECKSUM=1e153749b3a6b38e32967da18a855c0d7bed9491c4ae0ee9fc1f18b8f0da7338 CATTLE_CLUSTER=false CATTLE_INTERNAL_ADDRESS= CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=rmaster01 CATTLE_SERVER=https://192.168.6.99\n","stream":"stderr","time":"2021-03-04T12:19:47.389730102Z"}
{"log":"INFO: Using resolv.conf: nameserver 114.114.114.114\n","stream":"stderr","time":"2021-03-04T12:19:47.400889436Z"}
{"log":"INFO: https://192.168.6.99/ping is accessible\n","stream":"stderr","time":"2021-03-04T12:19:47.492514416Z"}
{"log":"INFO: Value from https://192.168.6.99/v3/settings/cacerts is an x509 certificate\n","stream":"stderr","time":"2021-03-04T12:19:47.62931405Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Rancher agent version v2.4.13-ent2 is starting\"\n","stream":"stdout","time":"2021-03-04T12:19:48.812730552Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option controlPlane=false\"\n","stream":"stdout","time":"2021-03-04T12:19:48.812816553Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option worker=false\"\n","stream":"stdout","time":"2021-03-04T12:19:48.81282949Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option requestedHostname=rmaster01\"\n","stream":"stdout","time":"2021-03-04T12:19:48.81284011Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option customConfig=map[address:192.168.6.100 internalAddress: label:map[] roles:[] taints:[]]\"\n","stream":"stdout","time":"2021-03-04T12:19:48.813026761Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option etcd=false\"\n","stream":"stdout","time":"2021-03-04T12:19:48.813064099Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Listening on /tmp/log.sock\"\n","stream":"stdout","time":"2021-03-04T12:19:48.813670462Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Connecting to wss://192.168.6.99/v3/connect with token 22nqwfgvkm54lw9pnwfxsdmjwc8r2zd29mwklwcnqr2dsj9lnsrr6l\"\n","stream":"stdout","time":"2021-03-04T12:19:48.942095458Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Connecting to proxy\" url=\"wss://192.168.6.99/v3/connect\"\n","stream":"stdout","time":"2021-03-04T12:19:48.942159207Z"}
{"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Starting plan monitor, checking every 120 seconds\"\n","stream":"stdout","time":"2021-03-04T12:19:48.976419909Z"}
[root@rmaster01 agent]#
[rancher@rmaster01 ~]$ kubectl delete deployments.apps nginx-deployment
deployment.apps "nginx-deployment" deleted
[rancher@rmaster01 ~]$ kubectl get events
LAST SEEN TYPE REASON OBJECT MESSAGE
4s Normal Killing pod/nginx-deployment-5f489dbb5-2wjw7 Stopping container nginx
4s Normal Killing pod/nginx-deployment-5f489dbb5-xz9nc Stopping container nginx
4s Normal Killing pod/nginx-deployment-5f489dbb5-zf97b Stopping container nginx
4s Warning FailedToUpdateEndpoint endpoints/nginx-deployment Failed to update endpoint default/nginx-deployment: Operation cannot be fulfilled on endpoints "nginx-deployment": the object has been modified; please apply your changes to the latest version and try again
[rancher@rmaster01 ~]$