diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-12-02 23:38:58 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-12-02 23:38:58 +0300 |
commit | 56017a50218629d49f0c7cb0623b2bd0eb929c92 (patch) | |
tree | 7f99671ce3227bb79c2d4efd75fd3a8c3e949781 /doc | |
parent | 0d5cbd16ee3b8eac49d134af063b1827748f2b6d (diff) |
Auto Devops migrate: add two release info
Let users know we do two Helm releases if they specify DB_INITIALIZE.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/topics/autodevops/index.md | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/topics/autodevops/index.md b/doc/topics/autodevops/index.md index 6bb2e236dc1..a8b088395aa 100644 --- a/doc/topics/autodevops/index.md +++ b/doc/topics/autodevops/index.md @@ -479,14 +479,23 @@ no longer be valid as soon as the deployment job finishes. This means that Kubernetes can run the application, but in case it should be restarted or executed somewhere else, it cannot be accessed again. +#### Migrations + > [Introduced][ce-21955] in GitLab 11.4 Database initialization and migrations for PostgreSQL can be configured to run within the application pod by setting the project variables `DB_INITIALIZE` and `DB_MIGRATE` respectively. -If present, `DB_INITIALIZE` will be run as a shell command within an application pod as a helm -post-install hook. Note that this means that if any deploy succeeds, +If present, `DB_INITIALIZE` will be run as a shell command within an +application pod as a helm post-install hook. As some applications will +not run without a successful database initialization step, GitLab will +deploy the first release without the application deployment and only the +database initialization step. After the database initialization completes, +GitLab will deploy a second release with the application deployment as +normal. + +Note that a post-install hook means that if any deploy succeeds, `DB_INITIALIZE` will not be processed thereafter. If present, `DB_MIGRATE` will be run as a shell command within an application pod as |