You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the PodMonitor created by Cluster resource via .spec.monitoring.enablePodMonitor could not satisfy my selectors, I created my own in the way described here. Example manifests is at the end.
But seems to me, I cannot use a PodMonitor named the same as the Cluster. The PodMonitor would be deleted immediately after applying the manifests. After I recreated the PodMonitor, it would be deleted again at a "random" time. After setting the operator logLevel to "debug", there was still no more information than the following log. And if I renamed the PodMonitor, it did not got deleted as far as I can see.
{"level":"info","ts":"2024-04-09T15:12:55Z","msg":"no orphan PVCs found, skipping the restored cluster reconciliation","controller":"cluster","controllerGroup":"postgresql.cnpg.io","controllerKind":"Cluster","Cluster":{"name":"jianxai","namespace":"default"},"namespace":"default","name":"jianxai","reconcileID":"83fa8685-4cfd-4b6f-bd6c-40d044b4f6c2","uuid":"a4531a3c-f683-11ee-b68a-9e1707788a7a"}
{"level":"info","ts":"2024-04-09T15:12:55Z","msg":"Deleting PodMonitor","controller":"cluster","controllerGroup":"postgresql.cnpg.io","controllerKind":"Cluster","Cluster":{"name":"jianxai","namespace":"default"},"namespace":"default","name":"jianxai","reconcileID":"83fa8685-4cfd-4b6f-bd6c-40d044b4f6c2","uuid":"a4531a3c-f683-11ee-b68a-9e1707788a7a"}
{"level":"info","ts":"2024-04-09T15:12:55Z","msg":"Creating new Job","controller":"cluster","controllerGroup":"postgresql.cnpg.io","controllerKind":"Cluster","Cluster":{"name":"jianxai","namespace":"default"},"namespace":"default","name":"jianxai","reconcileID":"83fa8685-4cfd-4b6f-bd6c-40d044b4f6c2","uuid":"a4531a3c-f683-11ee-b68a-9e1707788a7a","name":"jianxai-1-initdb","primary":true}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Due to the PodMonitor created by Cluster resource via
.spec.monitoring.enablePodMonitor
could not satisfy my selectors, I created my own in the way described here. Example manifests is at the end.But seems to me, I cannot use a PodMonitor named the same as the Cluster. The PodMonitor would be deleted immediately after applying the manifests. After I recreated the PodMonitor, it would be deleted again at a "random" time. After setting the operator logLevel to "debug", there was still no more information than the following log. And if I renamed the PodMonitor, it did not got deleted as far as I can see.
Beta Was this translation helpful? Give feedback.
All reactions