PostgreSQL pod restarts

If the postgresql-operator-controller-manager-1-18-1 pod restarts, check the apiserver pod for any issues.

Problem

The PostgresSQL controller manager pod restarts.
NAME                                                              READY   STATUS      RESTARTS        AGE
postgresql-operator-controller-manager-1-18-1-6b685cd848-t95hx    1/1     Running     49 (171m ago)   2d15h
The following error message is displayed.
Error: leader election lost

Resolution

Check for an issue with the apiserver pod that is running in the openshift-oauth-apiserver namespace.