Commit b06c861a authored by Shinya Maeda's avatar Shinya Maeda Committed by Marcel Amirault

Apply 13 suggestion(s) to 1 file(s)

parent 32dfd731
...@@ -457,6 +457,10 @@ Herokuish, and you must prefix commands run in these images with ...@@ -457,6 +457,10 @@ Herokuish, and you must prefix commands run in these images with
`/bin/herokuish procfile exec` to replicate the environment where your application `/bin/herokuish procfile exec` to replicate the environment where your application
will run. will run.
### Upgrade auto-deploy-app Chart
To upgrade auto-deploy-app chart, please read [upgrade guide](upgrading_chart.md).
### Workers ### Workers
Some web applications must run extra deployments for "worker processes". For Some web applications must run extra deployments for "worker processes". For
......
# Upgrading auto-deploy-app chart for Auto DevOps # Upgrading auto-deploy-app chart for Auto DevOps
## Compatibility Chart Auto DevOps provides auto-deploy-app chart for deploying your application to the
kubernetes cluster with Helm/Tiller. The resource architecture could be different
per major version and not backward compatible.
| GitLab | [auto-deploy-image](https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image) (with auto-deploy-app) | Comment | This guide provides instructions on how to upgrade your deployments to the latest
|--------|--------------|-------------| chart and resource architecture across major version difference.
| >= v10.0 | >= v0.1.0 and < v2.0.0 | v0 and v1 of charts are backward compatible |
## Upgrade Criteria ## Compatibility
- The Auto DevOps project must use the vanilla chart, which managed by GitLab. The following table lists the version compatibility between GitLab and [auto-deploy-image](https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image) (with the [auto-deploy-app chart](https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image/-/tree/master/assets/auto-deploy-app)).
[Customized charts](customize.md#custom-helm-chart) are unsupported.
## Manual Upgrade Guide | GitLab version | auto-deploy-image version | Notes |
|------------------|---------------------------|--------------------------------------------|
| v10.0 and higher | v0.1.0 and higher | v0 and v1 charts are backwards compatible. |
### Upgrading to v1 chart ## Upgrade Guide
Since v1 chart is backward compatible with v0 chart, you don't need any extra steps, The Auto DevOps project must use the unmodified chart managed by GitLab.
thus shouldn't encounter [the major version mismatch warning](#major-version-mismatch-warning). [Customized charts](customize.md#custom-helm-chart) are unsupported.
<!-- ### Upgrading to v2 ### v1 chart
This is scheduled in upcoming milestone. -->
## Major Version Mismatch Warning The v1 chart is backward compatible with the v0 chart, so no configuration changes are needed.
When the major version of the currently deploying chart is different from the previously deployed chart, ## Troubleshooting
the new chart could not be correctly applied to the existing deployment due to architectural change.
In this case, you would see that a deployment job fails with something like the following warning message. ### Major version mismatch warning
If deploying a chart that has a major version that is different from the previous one,
the new chart might not be correctly deployed. This could be due to an architectural
change. If that happens, the deployment job fails with a message similar to:
``` ```
************************************************************************************* *************************************************************************************
[WARNING] [WARNING]
Detected the major version difference between the previously deployed chart (auto-deploy-app-v0.7.0) and the currently deploying chart (auto-deploy-app-v1.0.0). Detected a major version difference between the the chart that is currently deploying (auto-deploy-app-v0.7.0), and the previously deployed chart (auto-deploy-app-v1.0.0).
A new major version likely does not have backward compatibility to the current release (production), therefore the deployment could fail or stuck in an unrecoverable status. A new major version might not be backward compatible with the current release (production). The deployment could fail or be stuck in an unrecoverable status.
... ...
``` ```
To resolve the message, please follow [the manual upgrade guide](#manual-upgrade-guide). To clear this error message and resume deployments, you must do one of the following:
Alternatively, you can keep [using a previous verions of chart](#keep-using-a-specific-version-of-chart) for quickly resuming deployments.
- Manually [upgrade the chart version](#upgrade-guide).
- [Use a specific chart version](#use-a-specific-chart-version).
### Keep using a specific version of chart #### Use a specific chart version
To use a specific version of chart, you must specify a corresponding version of [auto-deploy-image](https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image). To use a specific chart version, you must specify a corresponding version of [auto-deploy-image](https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image).
You can [customize `.gitlab-ci.yml`](customize.md#customizing-gitlab-ciyml) Do this by [customizing the image in your `.gitlab-ci.yml`](customize.md#customizing-gitlab-ciyml).
for this purpose.
For example, creating the following `.gitlab-ci.yml` file in the project. It specifies `v0.17.0` of [auto-deploy-image](https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image) For example, create the following `.gitlab-ci.yml` file in the project. It configures Auto Devops
for deployment jobs, which downloads the latest v0 chart from [chart repository](https://charts.gitlab.io/). to use [auto-deploy-image](https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image) version `v0.17.0`
for deployment jobs. It will download the chart from [chart repository](https://charts.gitlab.io/):
```yaml ```yaml
include: include:
...@@ -55,9 +62,11 @@ include: ...@@ -55,9 +62,11 @@ include:
image: "registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v0.17.0" image: "registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v0.17.0"
``` ```
### Forcibly continue deploying with ignoring the warning ### Ignore warning and continue deploying
If you are absolutely sure that the new chart version is safe to be deployed on the existing deployment, If you are certain that the new chart version is safe to be deployed,
you can set `AUTO_DEVOPS_ALLOW_TO_FORCE_DEPLOY_V<N>` [environment variable](customize.md#build-and-deployment) for forecibly contunuing the deployment. you can add the `AUTO_DEVOPS_ALLOW_TO_FORCE_DEPLOY_V<N>` [environment variable](customize.md#build-and-deployment)
to force the deployment to continue, where `<N>` is the major version.
For example, if you want to deploy v2.0.0 chart on a deployment which deployed with v0.17.0 chart, set `AUTO_DEVOPS_ALLOW_TO_FORCE_DEPLOY_V2`. For example, if you want to deploy the v2.0.0 chart on a deployment that previously
used the v0.17.0 chart, add `AUTO_DEVOPS_ALLOW_TO_FORCE_DEPLOY_V2`.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment