prometheus-operator / kube-prometheus

Use Prometheus to monitor Kubernetes and applications running on Kubernetes

Home Page:https://prometheus-operator.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error looking up service account serviceaccount not found

WhiteStart opened this issue · comments

my k8s version is v1.23.6,I used kube-prometheus version v0.10.0.

When I used the following command, the following issue occurred.
kubectl apply --server-side -f manifests/setup
kubectl apply -f manifests/


monitoring blackbox-exporter-6b79c4588b-hxhp8 0/3 Pending 0 7m50s
monitoring grafana-7fd69887fb-fqf87 0/1 Pending 0 7m49s
monitoring kube-state-metrics-55f67795cd-drlp6 0/3 Pending 0 7m49s
monitoring node-exporter-4969t 0/2 Pending 0 7m49s
monitoring node-exporter-kvvxz 0/2 Pending 0 7m49s
monitoring node-exporter-n7gbx 0/2 Pending 0 7m49s
monitoring prometheus-adapter-5565cc8d76-nbhwd 0/1 Pending 0 7m49s
monitoring prometheus-adapter-5565cc8d76-vwh4k 0/1 Pending 0 7m49s
monitoring prometheus-operator-6dc9f66cb7-cr76n 0/2 Pending 0 7m49s

root@master01:~/prometheus/test2/kube-prometheus-release-0.10# kubectl get events -n monitoring
LAST SEEN TYPE REASON OBJECT MESSAGE
105s Normal NoPods poddisruptionbudget/alertmanager-main No matching pods found
8m57s Normal SuccessfulCreate replicaset/blackbox-exporter-6b79c4588b Created pod: blackbox-exporter-6b79c4588b-hxhp8
8m57s Normal ScalingReplicaSet deployment/blackbox-exporter Scaled up replica set blackbox-exporter-6b79c4588b to 1
8m56s Normal SuccessfulCreate replicaset/grafana-7fd69887fb Created pod: grafana-7fd69887fb-fqf87
8m56s Normal ScalingReplicaSet deployment/grafana Scaled up replica set grafana-7fd69887fb to 1
8m56s Warning FailedCreate replicaset/kube-state-metrics-55f67795cd Error creating: pods "kube-state-metrics-55f67795cd-" is forbidden: error looking up service account monitoring/kube-state-metrics: serviceaccount "kube-state-metrics" not found
8m56s Normal SuccessfulCreate replicaset/kube-state-metrics-55f67795cd Created pod: kube-state-metrics-55f67795cd-drlp6
8m56s Normal ScalingReplicaSet deployment/kube-state-metrics Scaled up replica set kube-state-metrics-55f67795cd to 1
8m56s Warning FailedCreate daemonset/node-exporter Error creating: pods "node-exporter-" is forbidden: error looking up service account monitoring/node-exporter: serviceaccount "node-exporter" not found
8m56s Normal SuccessfulCreate daemonset/node-exporter Created pod: node-exporter-kvvxz
8m56s Normal SuccessfulCreate daemonset/node-exporter Created pod: node-exporter-n7gbx
8m56s Normal SuccessfulCreate daemonset/node-exporter Created pod: node-exporter-4969t
8m56s Warning FailedCreate replicaset/prometheus-adapter-5565cc8d76 Error creating: pods "prometheus-adapter-5565cc8d76-" is forbidden: error looking up service account monitoring/prometheus-adapter: serviceaccount "prometheus-adapter" not found
8m56s Normal SuccessfulCreate replicaset/prometheus-adapter-5565cc8d76 Created pod: prometheus-adapter-5565cc8d76-nbhwd
8m56s Normal SuccessfulCreate replicaset/prometheus-adapter-5565cc8d76 Created pod: prometheus-adapter-5565cc8d76-vwh4k
8m56s Normal NoPods poddisruptionbudget/prometheus-adapter No matching pods found
8m56s Normal ScalingReplicaSet deployment/prometheus-adapter Scaled up replica set prometheus-adapter-5565cc8d76 to 2
104s Normal NoPods poddisruptionbudget/prometheus-k8s No matching pods found
8m56s Warning FailedCreate replicaset/prometheus-operator-6dc9f66cb7 Error creating: pods "prometheus-operator-6dc9f66cb7-" is forbidden: error looking up service account monitoring/prometheus-operator: serviceaccount "prometheus-operator" not found
8m56s Normal SuccessfulCreate replicaset/prometheus-operator-6dc9f66cb7 Created pod: prometheus-operator-6dc9f66cb7-cr76n
8m56s Normal ScalingReplicaSet deployment/prometheus-operator Scaled up replica set prometheus-operator-6dc9f66cb7 to 1