1. [root@rmaster01 ~]# cd /var/log/pods/
    2. [root@rmaster01 pods]# ll
    3. total 0
    4. drwxr-xr-x 3 root root 19 Mar 4 20:19 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63
    5. drwxr-xr-x 6 root root 86 Mar 4 01:11 kube-system_canal-wczbn_57f5d36a-7394-4e0a-899e-b5024c146ae6
    6. drwxr-xr-x 3 root root 35 Mar 4 01:11 kube-system_rke-coredns-addon-deploy-job-snjhp_86e836c3-416d-4e6d-bda8-9be94c48a579
    7. drwxr-xr-x 3 root root 40 Mar 4 01:11 kube-system_rke-ingress-controller-deploy-job-2fvsw_db582a24-a2dc-45f4-b7be-5558065fc747
    8. drwxr-xr-x 3 root root 35 Mar 4 01:11 kube-system_rke-metrics-addon-deploy-job-8drtr_61c5303b-7bb5-43fd-9347-be25942d25a9
    9. drwxr-xr-x 3 root root 36 Mar 4 01:11 kube-system_rke-network-plugin-deploy-job-tpt48_1b54a5c1-935d-498a-967b-ff2c4174fcc7
    10. [root@rmaster01 pods]# cd cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63/
    11. [root@rmaster01 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63]# ll
    12. total 0
    13. drwxr-xr-x 2 root root 19 Mar 4 20:19 agent
    14. [root@rmaster01 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63]# cat agent/
    15. cat: agent/: Is a directory
    16. [root@rmaster01 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63]# ll
    17. total 0
    18. drwxr-xr-x 2 root root 19 Mar 4 20:19 agent
    19. [root@rmaster01 cattle-system_cattle-node-agent-8rdtr_29eaac0f-3587-4fa8-9534-a77a3d683f63]# cd agent/
    20. [root@rmaster01 agent]# ll
    21. total 0
    22. lrwxrwxrwx 1 root root 165 Mar 4 20:19 0.log -> /var/lib/docker/containers/52ef057b8a598ba018e890fe4f758a73e4bbf6a2edb64bdb7faf8359545507d8/52ef057b8a598ba018e890fe4f758a73e4bbf6a2edb64bdb7faf8359545507d8-json.log
    23. [root@rmaster01 agent]# cat 0.log
    24. {"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"}
    25. {"log":"INFO: Using resolv.conf: nameserver 114.114.114.114\n","stream":"stderr","time":"2021-03-04T12:19:47.400889436Z"}
    26. {"log":"INFO: https://192.168.6.99/ping is accessible\n","stream":"stderr","time":"2021-03-04T12:19:47.492514416Z"}
    27. {"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"}
    28. {"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"}
    29. {"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option controlPlane=false\"\n","stream":"stdout","time":"2021-03-04T12:19:48.812816553Z"}
    30. {"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option worker=false\"\n","stream":"stdout","time":"2021-03-04T12:19:48.81282949Z"}
    31. {"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option requestedHostname=rmaster01\"\n","stream":"stdout","time":"2021-03-04T12:19:48.81284011Z"}
    32. {"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"}
    33. {"log":"time=\"2021-03-04T12:19:48Z\" level=info msg=\"Option etcd=false\"\n","stream":"stdout","time":"2021-03-04T12:19:48.813064099Z"}
    34. {"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"}
    35. {"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"}
    36. {"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"}
    37. {"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"}
    38. [root@rmaster01 agent]#
    1. [rancher@rmaster01 ~]$ kubectl delete deployments.apps nginx-deployment
    2. deployment.apps "nginx-deployment" deleted
    3. [rancher@rmaster01 ~]$ kubectl get events
    4. LAST SEEN TYPE REASON OBJECT MESSAGE
    5. 4s Normal Killing pod/nginx-deployment-5f489dbb5-2wjw7 Stopping container nginx
    6. 4s Normal Killing pod/nginx-deployment-5f489dbb5-xz9nc Stopping container nginx
    7. 4s Normal Killing pod/nginx-deployment-5f489dbb5-zf97b Stopping container nginx
    8. 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
    9. [rancher@rmaster01 ~]$