https://rancher.com/ logo
Title
p

plain-portugal-37007

09/18/2022, 8:58 AM
hello, I am trying to install cluster monitoring on rancher 2.6.8 The prometheus-rancher-monitoring pod keep crashing and the events says that a secret is missing. the secret prometheus-rancher-monitoring-prometheus-tls-assets really doesn't exist but prometheus-rancher-monitoring-prometheus-tls-assets-0 does exist. why is this an issue and how can I fix this?
2m3s        Normal    Created       pod/prometheus-rancher-monitoring-prometheus-0   Created container config-reloader
2m3s        Normal    Started       pod/prometheus-rancher-monitoring-prometheus-0   Started container config-reloader
2m3s        Normal    Pulled        pod/prometheus-rancher-monitoring-prometheus-0   Container image "rancher/mirrored-library-nginx:1.21.1-alpine" already present on machine
2m3s        Normal    Created       pod/prometheus-rancher-monitoring-prometheus-0   Created container prometheus-proxy
2m2s        Normal    Started       pod/prometheus-rancher-monitoring-prometheus-0   Started container prometheus-proxy
2m2s        Normal    Killing       pod/prometheus-rancher-monitoring-prometheus-0   Stopping container prometheus
2m2s        Normal    Killing       pod/prometheus-rancher-monitoring-prometheus-0   Stopping container config-reloader
2m2s        Normal    Killing       pod/prometheus-rancher-monitoring-prometheus-0   Stopping container prometheus-proxy
2m          Normal    Scheduled     pod/prometheus-rancher-monitoring-prometheus-0   Successfully assigned cattle-monitoring-system/prometheus-rancher-monitoring-prometheus-0 to ip-10-102-66-114.ec2.internal
2m          Normal    Pulled        pod/prometheus-rancher-monitoring-prometheus-0   Container image "<http://quay.io/prometheus-operator/prometheus-config-reloader:v0.56.0|quay.io/prometheus-operator/prometheus-config-reloader:v0.56.0>" already present on machine
2m          Normal    Created       pod/prometheus-rancher-monitoring-prometheus-0   Created container init-config-reloader
2m          Normal    Started       pod/prometheus-rancher-monitoring-prometheus-0   Started container init-config-reloader
117s        Normal    Scheduled     pod/prometheus-rancher-monitoring-prometheus-0   Successfully assigned cattle-monitoring-system/prometheus-rancher-monitoring-prometheus-0 to ip-10-102-66-114.ec2.internal
117s        Normal    Pulled        pod/prometheus-rancher-monitoring-prometheus-0   Container image "<http://quay.io/prometheus-operator/prometheus-config-reloader:v0.56.0|quay.io/prometheus-operator/prometheus-config-reloader:v0.56.0>" already present on machine
117s        Normal    Created       pod/prometheus-rancher-monitoring-prometheus-0   Created container init-config-reloader
116s        Normal    Started       pod/prometheus-rancher-monitoring-prometheus-0   Started container init-config-reloader
114s        Normal    Scheduled     pod/prometheus-rancher-monitoring-prometheus-0   Successfully assigned cattle-monitoring-system/prometheus-rancher-monitoring-prometheus-0 to ip-10-102-66-114.ec2.internal
50s         Warning   FailedMount   pod/prometheus-rancher-monitoring-prometheus-0   MountVolume.SetUp failed for volume "tls-assets" : secret "prometheus-rancher-monitoring-prometheus-tls-assets" not found
m

many-actor-48045

09/19/2022, 4:56 AM
No idea how this came to be, but I guess that if nothing else, you could clone the *-0 version using the correct name and see if that works.