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"
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,这里没对齐