Enabling RBAC on Kubernetes on Azure

南楼画角 提交于 2019-12-12 04:39:48

问题


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?

Also the api server configuration is set to --v=10 and the image is v1.6.6


回答1:


Deleting the pod is not enough. You need to restart kubelet in order for the new options to be applied.

   systemctl restart kubelet



回答2:


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

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.



来源:https://stackoverflow.com/questions/46552593/enabling-rbac-on-kubernetes-on-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!