-
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.
Merge pull request #258 from mkubaczyk/custom-tiller-role
Add TillerRoleTemplateFile to allow create Tiller with custom role
- Loading branch information
Showing
10 changed files
with
120 additions
and
54 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
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,37 @@ | ||
--- | ||
version: v1.10.0 | ||
--- | ||
|
||
# Create helmsman per namespace with your custom Role | ||
|
||
You can deploy namespace-specific helmsman Tiller with Service Account having custom Role. | ||
|
||
By default, when defining Namespaces in Desired State Specification file, when `installTiller` is enabled for specific namespace, | ||
it creates the Role to bind the Tiller to with default [yaml template](../../../data/role.yaml). | ||
|
||
If there's a need for custom Role (let's say each namespace has its different and specific requirements to permissions), | ||
you can define `tillerRoleTemplateFile`, which is a relative path pointing at a template of a Role (same format as a [yaml template](../../../data/role.yaml)), | ||
so when Helmsman creates Tiller in the namespace with this key, custom Role will be created for Tiller. | ||
|
||
```toml | ||
[namespaces] | ||
[namespaces.dev] | ||
useTiller = true | ||
[namespaces.production] | ||
installTiller = true | ||
tillerServiceAccount = "tiller-production" | ||
tillerRoleTemplateFile = "../roles/helmsman-tiller.yaml" | ||
``` | ||
|
||
```yaml | ||
namespaces: | ||
dev: | ||
useTiller: true | ||
production: | ||
installTiller: true | ||
tillerServiceAccount: "tiller-production" | ||
tillerRoleTemplateFile: "../roles/helmsman-tiller.yaml" | ||
``` | ||
The example above will create two namespaces: dev and production, where dev namespace will have its Tiller with default Role, | ||
while production namespace will be managed by its specific Tiller having custom role based on the `"../roles/helmsman-tiller.yaml"` template created by you. |
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
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
Oops, something went wrong.