多节点全部安装完成了,执行最后一条命令报错
[root@ks-master ~]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath=‘{.items[0].metadata.name}’) -f
Unable to connect to the server: Forbidden
error: expected ‘logs [-f] [-p] (POD | TYPE/NAME) [-c CONTAINER]’.
POD or TYPE/NAME is a required argument for the logs command
See ‘kubectl logs -h’ for help and examples
执行kubectl get pod提示禁止
[root@ks-master ~]# kubectl get pod
Unable to connect to the server: Forbidden