-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.md.gotmpl
88 lines (62 loc) · 2.06 KB
/
README.md.gotmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# {{ template "chart.name" . }}
{{ template "chart.description" . }}
{{ template "chart.maintainersSection" . }}
## Prerequisites
* Helm 3+
{{ template "chart.requirementsSection" . }}
## Add repository
```console
helm repo add devops-ia https://devops-ia.github.io/helm-charts
helm repo update
```
## Install Helm chart
```console
helm install [RELEASE_NAME] devops-ia/{{ template "chart.name" . }}
```
This install all the Kubernetes components associated with the chart and creates the release.
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
## Uninstall Helm chart
```console
# Helm
helm uninstall [RELEASE_NAME]
```
This removes all the Kubernetes components associated with the chart and deletes the release.
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
## Examples
#### Set config
```console
helm install {{ template "chart.name" . }} devops-ia/{{ template "chart.name" . }} --set schedule="0 */4 * * *" --set elasticContainerRegistry="account.dkr.ecr.region.amazonaws.com" --set env.AWS_ACCESS_KEY_ID="XXXXXXX" --set env.AWS_SECRET_ACCESS_KEY="XXXXXXX"
```
#### Use chart `secrets` and `envFromSecrets` reference
```console
# values example
secrets:
AWS_ACCESS_KEY_ID: XXXXXXX
AWS_SECRET_ACCESS_KEY: XXXXXXX
...
envFromSecrets:
AWS_ACCESS_KEY_ID:
name: [RELEASE_NAME]-credentials
key: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
name: [RELEASE_NAME]-credentials
key: AWS_SECRET_ACCESS_KEY
```
#### Use external `Secret` file and reference with `envFromSecrets`
```console
# values example
...
envFromSecrets:
AWS_ACCESS_KEY_ID:
name: my-secret-file
key: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
name: my-secret-file
key: AWS_SECRET_ACCESS_KEY
```
## Configuration
See [Customizing the chart before installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with comments:
```console
helm show values devops-ia/{{ template "chart.name" . }}
```
{{ template "chart.valuesSection" . }}