Promote To Production¶
Code Snapshots¶
There's a branch for the status of the code after:
- adding Sentry for logging, in the branch 09-sentry.
- adding Monitoring with Prometheus, in the branch 09-monitoring
- adding Jaeger with OpenTracing, in the branch 09-tracing
Configure Production Environment Repository¶
For each Jenkins X environment that your application is going to land in, such as jx-staging
and jx-production
, we have to enable Vault support.
We do this by making a change in the Environment's jx-requirements.yml
file in the root of the repository of the environment. This file might not exist, if so, create it.
If you're not sure where the repository of your environment is, you can retrieve this information via the jx
CLI.
To enable support for Vault, we add secretStorage: vault
to the file. The file will look like this:
Add Application Values¶
Same as we did in the chapter Database Connection Ad Secrets
, we add the application's values in the env/values.yaml
file of the environment.
env/values.yaml
Promote Application¶
First, retrieve the current version of your application.
It should yield something like this:
APPLICATION STAGING PODS URL
quarkus-fruits 1.0.51 1/1 https://quarkus-fruits-jx-staging.staging.example.com
We can now promote the latest working version in staging, 1.0.49
in my casse, to Production!
Completed¶
Well, it is never finished now is it?
But this is as much as I want to write down, for now.