Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
335b3806
Commit
335b3806
authored
Nov 18, 2016
by
Fabian Ruff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for rolling deployments on config change
parent
dce6b647
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
charts_tips_and_tricks.md
docs/charts_tips_and_tricks.md
+23
-0
No files found.
docs/charts_tips_and_tricks.md
View file @
335b3806
...
@@ -61,6 +61,29 @@ Because YAML ascribes significance to indentation levels and whitespace,
...
@@ -61,6 +61,29 @@ Because YAML ascribes significance to indentation levels and whitespace,
this is one great way to include snippets of code, but handle
this is one great way to include snippets of code, but handle
indentation in a relevant context.
indentation in a relevant context.
## Automatically Roll Deployments When ConfigMaps or Secrets change
Often times configmaps or secrets are injected as configuration
files in containers.
Depending on the application a restart may be required should those
be updated with a subsequent
`helm upgrade`
, but if the
deployment spec itself didn't change the application keeps running
with the old configuration resulting in an inconsistent deployment.
The
`sha256sum`
function can be used together with the
`include`
function to ensure a deployments template section is updated if another
spec changes:
```
kind: Deployment
spec:
template:
metadata:
annotations:
checksum/config: {{ include "mychart/templates/configmap.yaml" . | sha256sum }}
[...]
```
## Using "Partials" and Template Includes
## Using "Partials" and Template Includes
Sometimes you want to create some reusable parts in your chart, whether
Sometimes you want to create some reusable parts in your chart, whether
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment