OpenShift Gogs Fails to Create Required Postgresql Database

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

The integrated CI/CD (Gogs/Nexus/etc.) deployment fails because Gogs deployment fails. The Gogs deployment fails because the liveness probe kills the container that is being initialized right when it creates the required database ("gogs"). The next time the container is started, most of the structures are there, so the database creation is not being attempted anymore - thus the readiness probe fails.

Solution

Relax liveness - it takes longer to become live.