我有这个 Terraform 配置,用于将 kubernetes 仪表板部署到我的集群维基百科。
resource "helm_release" "my-kubernetes-dashboard" {
name = "my-kubernetes-dashboard"
repository = "https://kubernetes.github.io/dashboard/"
chart = "kubernetes-dashboard"
namespace = "default"
set {
name = "service.type"
value = "ClusterIP"
}
set {
name = "protocolHttp"
value = "true"
}
set {
name = "service.externalPort"
value = 80
}
set {
name = "replicaCount"
value = 1
}
set {
name = "rbac.clusterReadOnlyRole"
value = "true"
}
set {
name = "rbac.clusterAdminRole"
value = "true"
}
set {
name = "rbac.create"
value = "true"
}
}
现在,kubernetes 仪表板会立即弹出,无需输入任何具有完全权限的密码。我需要添加/更改什么才能使 kubernetes 仪表板需要用户名和密码才能登录。