由于 prom admission serviceaccount 错误,prometheus operator helm chart 安装失败
prometheus operator helm chart failed to install due to prom admission serviceaccount error
我正在尝试在 Azure Kubernetes 集群中设置 prometheus 监控。
使用 helm 安装 prometheus operator。
helm install prometheus-op-release stable/prometheus-operator --set global.rbac.create=false,prometheusOperator.serviceMonitor.interval=5s,alertmanager.enabled=false
大约 5 分钟后,安装超时并出现以下错误,
Error: failed pre-install: timed out waiting for the condition
查看集群,注意到创建了一个新作业 prometheus-op-release-prom-admission-create
。由于找不到服务帐户,它有一个 pod 无法创建。
Error creating: pods "prometheus-op-release-prom-admission-create-" is forbidden: error looking up service account default/prometheus-op-release-prom-admission: serviceaccount "prometheus-op-release-prom-admission" not found
我需要在安装图表之前创建服务帐户吗?查看服务帐户名称,感受它的动态并作为图表安装的一部分创建。但是我是 helm chart 的新手,不知道去哪里寻找故障排除。
kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.2", GitCommit:"cff46ab41ff0bb44d8584413b598ad8360ec1def", GitTreeStat
e:"clean", BuildDate:"2019-01-10T23:35:51Z", GoVersion:"go1.11.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.8", GitCommit:"c52f59bbba5fbf21fbb18e9a06f96e563fe4c20a", GitTreeStat
e:"clean", BuildDate:"2020-01-31T20:00:26Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
头盔版本
version.BuildInfo{Version:"v3.1.1", GitCommit:"afe70585407b420d0097d07b21c47dc511525ac8", GitTreeState:"clean", GoVersion:"go1.13.8"}
您需要从 helm 命令中删除 global.rbac.create=false
。如果指定此项,它将不会自动创建服务帐户。
我正在尝试在 Azure Kubernetes 集群中设置 prometheus 监控。
使用 helm 安装 prometheus operator。
helm install prometheus-op-release stable/prometheus-operator --set global.rbac.create=false,prometheusOperator.serviceMonitor.interval=5s,alertmanager.enabled=false
大约 5 分钟后,安装超时并出现以下错误,
Error: failed pre-install: timed out waiting for the condition
查看集群,注意到创建了一个新作业 prometheus-op-release-prom-admission-create
。由于找不到服务帐户,它有一个 pod 无法创建。
Error creating: pods "prometheus-op-release-prom-admission-create-" is forbidden: error looking up service account default/prometheus-op-release-prom-admission: serviceaccount "prometheus-op-release-prom-admission" not found
我需要在安装图表之前创建服务帐户吗?查看服务帐户名称,感受它的动态并作为图表安装的一部分创建。但是我是 helm chart 的新手,不知道去哪里寻找故障排除。
kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.2", GitCommit:"cff46ab41ff0bb44d8584413b598ad8360ec1def", GitTreeStat e:"clean", BuildDate:"2019-01-10T23:35:51Z", GoVersion:"go1.11.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.8", GitCommit:"c52f59bbba5fbf21fbb18e9a06f96e563fe4c20a", GitTreeStat e:"clean", BuildDate:"2020-01-31T20:00:26Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
头盔版本
version.BuildInfo{Version:"v3.1.1", GitCommit:"afe70585407b420d0097d07b21c47dc511525ac8", GitTreeState:"clean", GoVersion:"go1.13.8"}
您需要从 helm 命令中删除 global.rbac.create=false
。如果指定此项,它将不会自动创建服务帐户。