forked from nebari-dev/nebari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qhub Extension (Ready for Review) (nebari-dev#886)
* add support for helm_extensions in qhub-config.yaml file * add helm_extensions documentation Co-authored-by: Adam-D-Lewis <>
- Loading branch information
1 parent
38faf90
commit 6008711
Showing
8 changed files
with
93 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Other Helm Charts | ||
|
||
Arbitrary helm charts can be deployed and managed with the qhub-config.yaml file. | ||
|
||
As an example, deploying the redis helm chart with qhub might look like the below: | ||
|
||
```yaml | ||
helm_extensions: | ||
- name: my-redis-deployment | ||
repository: https://charts.bitnami.com/bitnami | ||
chart: redis | ||
version: 15.5.1 | ||
overrides: | ||
diagnosticMode: | ||
enabled: true | ||
``` | ||
The `overrides` section is optional, but corresponds to the helm chart's [values.yaml](https://helm.sh/docs/chart_template_guide/values_files/) file, and allows you to override the default helm chart settings. |
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 |
---|---|---|
|
@@ -13,5 +13,6 @@ system_maintenance.md | |
monitoring.md | ||
clearml.md | ||
prefect.md | ||
custom-helm-charts.md | ||
faq.md | ||
``` |
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 |
---|---|---|
|
@@ -49,6 +49,7 @@ | |
"h2_color": "#652e8e", | ||
} | ||
}, | ||
"helm_extensions": [], | ||
"monitoring": { | ||
"enabled": 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"certificate": { | ||
"type": "self-signed" | ||
}, | ||
"helm_extensions": [], | ||
"monitoring": { | ||
"enabled": null | ||
}, | ||
|
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
9 changes: 9 additions & 0 deletions
9
...tter.repo_directory }}/infrastructure/modules/kubernetes/services/helm-extensions/main.tf
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,9 @@ | ||
resource "helm_release" "custom-helm-deployment" { | ||
name = var.name | ||
namespace = var.namespace | ||
repository = var.repository | ||
chart = var.chart | ||
version = var.chart_version | ||
|
||
values = var.overrides | ||
} |
32 changes: 32 additions & 0 deletions
32
...repo_directory }}/infrastructure/modules/kubernetes/services/helm-extensions/variables.tf
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,32 @@ | ||
variable "name" { | ||
description = "helm deployment name" | ||
type = string | ||
default = "dev" | ||
} | ||
|
||
variable "namespace" { | ||
description = "deploy helm chart on this namespace" | ||
type = string | ||
default = "dev" | ||
} | ||
|
||
variable "repository" { | ||
description = "helm chart repository" | ||
type = string | ||
} | ||
|
||
variable "chart" { | ||
description = "helm chart name in helm chart repository" | ||
type = string | ||
} | ||
|
||
variable "chart_version" { | ||
description = "Helm chart version" | ||
type = string | ||
} | ||
|
||
variable "overrides" { | ||
description = "Overrides for the helm chart values" | ||
type = list | ||
default = [] | ||
} |