The kube-apiserver is running in your kube-apiserver-< example.com > container.
(kube-apiserver在您的kube-apiserver- <example.com>容器中运行。)
The application does not have a get method at the moment to obtain the enabled admission plugins, but you can get the startup parameters from its command line. (该应用程序目前尚无get方法来获取已启用的准入插件,但是您可以从其命令行获取启动参数。)
kubectl -n kube-system describe po kube-apiserver-example.com
Another way, to see what is in the container: unfortunately there is no "ps" command in the container, but you can get the initial process command parameters from /proc , something like that:
(另一种查看容器中内容的方法:不幸的是,容器中没有“ ps”命令,但是您可以从/ proc获得初始过程命令参数,如下所示:)
kubectl -n kube-system exec kube-apiserver-example.com -- sed 's/--/
/g' /proc/1/cmdline
It will be probably like :
(它可能像:)
enable-admission-plugins=NodeRestriction
(enable-admission-plugins = NodeRestriction)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…