error: a container name must be specified for pod pod-base, choose one of: [nginx busybox]
后面加: -c 和容器名字
[root@node1 l-yaml]# kubectl logs -f pod-base -n dev -c nginx
后面加: -c 和容器名字
[root@node1 l-yaml]# kubectl logs -f pod-base -n dev -c nginx