-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sami Alajrami
committed
Nov 26, 2017
1 parent
6695bf8
commit 3e271a3
Showing
11 changed files
with
270 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
version: v0.1.3 | ||
--- | ||
|
||
# define namespaces | ||
|
||
You can define namespaces to be used in your cluster. If they don't exist, Helmsman will create them for you. | ||
|
||
``` | ||
... | ||
[namespaces] | ||
staging = "staging" | ||
production = "default" | ||
myOtherNamespace = "namespaceX" | ||
... | ||
``` | ||
|
||
You can then tell Helmsman to put specific releases in a specific namespace: | ||
|
||
``` | ||
... | ||
[apps] | ||
[apps.jenkins] | ||
name = "jenkins" | ||
description = "jenkins" | ||
namespace = "myOtherNamespace" # this is the pointer to the namespace defined above -- i.e. it deploys to namespace 'namespaceX' | ||
enabled = true | ||
chart = "stable/jenkins" | ||
version = "0.9.1" | ||
valuesFile = "" | ||
purge = false | ||
test = true | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
version: v0.1.3 | ||
--- | ||
|
||
# move charts across namespaces | ||
|
||
If you have a workflow for testing a release first in the `staging` namespace then move to the `production` namespace, Helmsman can help you. | ||
|
||
``` | ||
... | ||
[namespaces] | ||
staging = "staging" | ||
production = "default" | ||
myOtherNamespace = "namespaceX" | ||
[apps] | ||
[apps.jenkins] | ||
name = "jenkins" | ||
description = "jenkins" | ||
namespace = "staging" # this is where it is deployed | ||
enabled = true | ||
chart = "stable/jenkins" | ||
version = "0.9.1" | ||
valuesFile = "" | ||
purge = false | ||
test = true | ||
... | ||
``` | ||
|
||
Then if you change the namespace key for jenkins: | ||
|
||
``` | ||
... | ||
[namespaces] | ||
staging = "staging" | ||
production = "default" | ||
myOtherNamespace = "namespaceX" | ||
[apps] | ||
[apps.jenkins] | ||
name = "jenkins" | ||
description = "jenkins" | ||
namespace = "production" # we want to move it to production | ||
enabled = true | ||
chart = "stable/jenkins" | ||
version = "0.9.1" | ||
valuesFile = "" | ||
purge = false | ||
test = true | ||
... | ||
``` | ||
|
||
Helmsman will delete the jenkins release from the `staging` namespace and install it in the `production` namespace (default in the above setup). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
version: v0.1.3 | ||
--- | ||
|
||
# pass secrets from env. variables: | ||
|
||
Starting from v0.1.3, Helmsman allows you to pass secrets and other user input to helm charts from environment variables as follows: | ||
|
||
``` | ||
... | ||
[apps] | ||
[apps.jira] | ||
name = "jira" | ||
description = "jira" | ||
namespace = "staging" | ||
enabled = true | ||
chart = "myrepo/jira" | ||
version = "0.1.5" | ||
valuesFile = "applications/jira-values.yaml" | ||
purge = false | ||
test = true | ||
[apps.jira.set] # the format is [apps.<<release_name (as defined above)>>.set] | ||
db_username= "$JIRA_DB_USERNAME" # pass any number of key/value pairs where the key is the input expected by the helm charts and the value is an env variable name starting with $ | ||
db_password= "$JIRA_DB_PASSWORD" | ||
... | ||
``` | ||
|
||
These input variables will be passed to the chart when it is deployed/upgraded using helm's `--set <<var_name>>=<<var_value_read_from_env_var>>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
version: v0.1.2 | ||
version: v0.1.3 | ||
--- | ||
|
||
# Run Helmsman in CI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
version: v0.1.3 | ||
--- | ||
|
||
# test charts | ||
|
||
You can specifiy that you would like a chart to be tested whenever it is installed for the first time using the `test` key as follows: | ||
|
||
``` | ||
... | ||
[apps] | ||
[apps.jenkins] | ||
name = "jenkins" | ||
description = "jenkins" | ||
namespace = "staging" | ||
enabled = true | ||
chart = "stable/jenkins" | ||
version = "0.9.1" | ||
valuesFile = "" | ||
purge = false | ||
test = true # setting this to true, means you want the charts tests to be run on this release when it is intalled. | ||
... | ||
``` |
Oops, something went wrong.