alpaca2333 / crontab-hpa-controller

Crontab hpa/replicas controller for kubernetes clusters.
5 stars 0 forks source link

Role和RoleBinding的类型不匹配 #2

Open VayneDuan opened 2 years ago

VayneDuan commented 2 years ago

time="2022-05-04T16:13:10Z" level=error msg="Cannot list hpa: horizontalpodautoscalers.autoscaling is forbidden: User \"system:serviceaccount:dev:cronhpacontroller-sa\" cannot list resource \"horizontalpodautoscalers\" in API group \"autoscaling\" in the namespace \"dev\": RBAC: clusterrole.rbac.authorization.k8s.io \"cron-hpa-controller-role\" not found" time="2022-05-04T16:13:10Z" level=error msg="cannot list deployments: deployments.apps is forbidden: User \"system:serviceaccount:dev:cronhpacontroller-sa\" cannot list resource \"deployments\" in API group \"apps\" in the namespace \"dev\": RBAC: clusterrole.rbac.authorization.k8s.io \"cron-hpa-controller-role\" not found"

在 rbac.yaml 这个文件中 第2行的Kind是Role,RoleBinding中的kind是ClusterRole,这里没对齐

alpaca2333 commented 2 years ago

收到,这里的代码忘记维护,我稍后更新上来。感谢反馈!