在Azure上的Kubernetes上启用RBAC [英] Enabling RBAC on Kubernetes on Azure
问题描述
我正在尝试在Azure的k8s集群上启用RBAC.我将其切入主节点,并使用--authorization-mode=RBAC
标志编辑了kube-apiserver.yaml
.然后,我删除kube-apiserver
pod以便重新启动api服务器.但是,重新启动时--authorization-mode=RBAC
配置将被忽略.有人有什么建议吗?
I'm trying to enable RBAC on my k8s cluster on azure. I ssh'ed into my master node and edited the kube-apiserver.yaml
with the --authorization-mode=RBAC
flag. Then I delete the kube-apiserver
pod in order to restart the api server. However, when upon restart the --authorization-mode=RBAC
config is ignored. Anybody have any advice?
还将api服务器配置设置为--v=10
,图像设置为v1.6.6
Also the api server configuration is set to --v=10
and the image is v1.6.6
推荐答案
我终于能够生成一个群集,该群集将允许我通过使用Azure容器服务引擎生成手臂模板来在天蓝色的情况下启用RBAC: https://github.com/Azure/acs-engine
I was finally able to generate a cluster that would allow me to enable RBAC on azure by generating an arm template using Azure Container Service Engine: https://github.com/Azure/acs-engine
通过使用上述库,我可以创建一个启用了RBAC的新手臂模板,然后使用Azure CLI创建一个RBAC,可配置的Kubernetes群集.
By using the above library I could create a new arm template with RBAC enabled and then use the Azure CLI to create a RBAC, configurable Kubernetes cluster.
这篇关于在Azure上的Kubernetes上启用RBAC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!