Goal of the following chart is to record deployments in various services to track the effect of changes better.
record-deployment - as of now - supports the following services
- NewRelic How does it look like?
- Rollbar How does it look like?
- Slack How does it look like?
In order to use this subchart and to record deployments first you have to define it as a subchart to the project where you wish to use it.
dependencies:
- name: record-deployment
version: "0.1.0"
repository: "file://../record-deployment"
Below you will find the necessary information about what you'll need from specific integrations to make them working.
To configure integration with NewRelic deployments you will need the appID
and the apiKey
- Get the
appID
by opening the app in NewRelic and from the address bar copy the relevant part, for eghttps://rpm.newrelic.com/accounts/<account>/applications/*<appID>*
- Get the
apiKey
by going toAccount settings
and look forAPI keys
It is recommended to inject apiKey
during the install in a secure way and not save it anywhere in the chart repository.
Parameter | Description | Default |
---|---|---|
newrelic.appID |
Application ID in NewRelic APM | nil |
newrelic.apiKey |
API key to communication with NewRelic | nil |
revision |
Version number or git SHA of the deployment | nil |
For RollBar you would need a project specific accessToken
to record deployments.
- Open project, then click on
Settings
around the top right corner. Go toProject Access Tokens
and take thepost_server_item
token.
It is recommended to inject accessToken
during the install in a secure way and not save it anywhere in the chart repository.
Parameter | Description | Default |
---|---|---|
rollbar.accessToken |
Application specific Rollbar Token | nil |
environment |
Environment of the deployment | nil |
revision |
Version number or git SHA of the deployment | nil |
Configuration of Slack also needs a key called token
.
- Create a Legacy token at https://api.slack.com/custom-integrations/legacy-tokens
It is recommended to inject accessToken
during the install in a secure way and not save it anywhere in the chart repository.
Parameter | Description | Default |
---|---|---|
slack.token |
Legacy token to communicate with Slack API | nil |
slack.channel |
Slack channel to send messages to | nil |
application |
Application name | nil |
environment |
Environment of the deployment | nil |
revision |
Version number or git SHA of the deployment | nil |
If you inject the sensitive parts during your deployment and configure the not sensitive ones, you'll end up with three basic things to pass during deployment.
Example values file as a subchart:
record-deployment:
application: "Super Dashboard"
environment: "testing"
revision: "1.0"
# NewRelic integration enabled
newrelic:
appID: !!string 12345678
apiKey: <api_key>
# Rollbar integration disabled
#rollbar:
# Slack enabled
slack:
channel: "#deployments"
Specifying revision number could look like the following:
helm upgrade --install \
...
--set record-deployment.revision="$TAG"
...