[root@master Chapter6]# kubectl exec -it busybox-2 sh
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
# hostname
busybox-2
# hostname -f
busybox-2.default-subdomain.default.svc.cluster.local
# cat /etc/hosts
# Kubernetes-managed hosts file.
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe00::1 ip6-allnodes
fe00::2 ip6-allrouters
10.244.1.148 busybox-2.default-subdomain.default.svc.cluster.local busybox-2
#
[root@master Chapter6]# kubectl exec -it busybox-2 sh
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
# hostname -f
busybox-2.default-subdomain.default.svc.cluster.local
# cat /etc/hosts
# K