From 0251da2881ef956cc2c4dba82cdb45e985ac182b Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Thu, 18 Apr 2019 15:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=9B=E5=BB=BA=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=AE=A4=E8=AF=81=E9=85=8D=E7=BD=AE=E7=9A=84=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/setup/04-install_kube_master.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/setup/04-install_kube_master.md b/docs/setup/04-install_kube_master.md index fbc72b8..20fca65 100644 --- a/docs/setup/04-install_kube_master.md +++ b/docs/setup/04-install_kube_master.md @@ -70,6 +70,10 @@ roles/kube-master/ 可选,为后续使用基础认证的场景做准备,如实现dashboard 用不同用户名登陆绑定不同的权限,后续更新dashboard的实践文档。 +若未创建任何基础认证配置,K8S集群部署完毕后访问dashboard将会提示`401`错误。 + +当前如需创建基础认证,需单独修改`roles/kube-master/defaults/main.yml`文件,将`BASIC_AUTH_ENABLE`改为`yes`,并相应配置用户名`BASIC_AUTH_USER`(默认用户名为`admin`)及密码`BASIC_AUTH_PASS`。 + ### 创建apiserver的服务配置文件 ``` bash