如何在Minikube中更改api-server的身份验证机制? [英] How can the authentication mechanism be changed for api-server in Minikube?
问题描述
我有一个本地minikube安装.我想更改api服务器的身份验证机制,然后重新启动并对其进行测试.我阅读的所有文档都缺少此信息.
I have a local minikube installation. I want to change the authentication mechanism for the api-server and restart and test it out. All the documentation I have read lacks this information.
推荐答案
可以. kubernetes API服务器,控制器管理器和调度程序都在minikube中作为静态清单运行.
Yes you can. The kubernetes API Server, Controller manager, and scheduler are all run as static manifests in minikube.
因此,实际上,在您的示例中:对清单的任何更改都会自动导致它们立即重新启动.
So, in fact, in your example: Any change to the manifest will automatically lead to them being restarted instantly.
要进行修改,只需在/etc/kubernetes/manifests内的任何要编辑的文件上使用vi
,您就会看到apiserver立即重启.
In order to make the modification, just use vi
inside of /etc/kubernetes/manifests on whatever file you want to edit, and you'll see that the apiserver instantly restarts.
要查看重新启动的日志,可以查看/var/log/containers/中每个单独的minikube服务的运行位置.
To look at the logs of the restart, you can look in /var/log/containers/ where each of the individual minikube services run.
这篇关于如何在Minikube中更改api-server的身份验证机制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!