set up helm structure
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
.idea/
|
.idea/
|
||||||
cert/
|
cert/
|
||||||
http/*/http-client.env.json
|
http/*/http-client.env.json
|
||||||
|
helm/values/*/
|
||||||
|
|||||||
23
helm/.helmignore
Normal file
23
helm/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Patterns to ignore when building packages.
|
||||||
|
# This supports shell glob matching, relative path matching, and
|
||||||
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
.DS_Store
|
||||||
|
# Common VCS dirs
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.bzr/
|
||||||
|
.bzrignore
|
||||||
|
.hg/
|
||||||
|
.hgignore
|
||||||
|
.svn/
|
||||||
|
# Common backup files
|
||||||
|
*.swp
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.orig
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
35
helm/README.md
Normal file
35
helm/README.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# Hlæja Helm
|
||||||
|
|
||||||
|
## Set up helm environment
|
||||||
|
|
||||||
|
how to set up [Enviorment](./values/README.md)
|
||||||
|
|
||||||
|
## Deploy to Kubernete
|
||||||
|
|
||||||
|
> ⚠️**Warning:** always use `--selector namespace=<releasesEnviorment>` when running `helmfile` or **risk** lose it all!!! ⚠️
|
||||||
|
|
||||||
|
> **Info:** limit even more by using `--selector namespace=<releasesEnviorment>,name=<releasesName>`
|
||||||
|
|
||||||
|
Create everything for a name space
|
||||||
|
|
||||||
|
```shell
|
||||||
|
helmfile --selector namespace=testing apply
|
||||||
|
```
|
||||||
|
|
||||||
|
Destroy everything for a name space
|
||||||
|
|
||||||
|
```shell
|
||||||
|
helmfile --selector namespace=testing destroy
|
||||||
|
```
|
||||||
|
|
||||||
|
Create initialize for a name space
|
||||||
|
|
||||||
|
```shell
|
||||||
|
helmfile --selector namespace=testing,name=initialize apply
|
||||||
|
```
|
||||||
|
|
||||||
|
Destroy initialize for a name space
|
||||||
|
|
||||||
|
```shell
|
||||||
|
helmfile --selector namespace=testing,name=initialize destroy
|
||||||
|
```
|
||||||
39
helm/values/README.md
Normal file
39
helm/values/README.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# Hlæja Helm Environment
|
||||||
|
|
||||||
|
To make the environment copy `values.yaml` file from `charts/<name>` to `values/<releasesEnviorment>` then change the values you need. or make the file and add the value you like to overwrite.
|
||||||
|
|
||||||
|
```
|
||||||
|
helm/
|
||||||
|
├── helmfile.yaml
|
||||||
|
├── values/
|
||||||
|
│ ├── <releasesEnviorment>/
|
||||||
|
│ │ ├── <name>.yaml
|
||||||
|
| │ └── ...
|
||||||
|
│ └── ...
|
||||||
|
└── charts/
|
||||||
|
├── <name>/
|
||||||
|
│ ├── Chart.yaml
|
||||||
|
│ ├── values.yaml
|
||||||
|
│ └── templates/
|
||||||
|
│ └── <template>.yaml
|
||||||
|
└── ...
|
||||||
|
```
|
||||||
|
|
||||||
|
Then we need to update `helmfile.yaml` one for each environment.
|
||||||
|
|
||||||
|
```
|
||||||
|
releases:
|
||||||
|
- name: <releasesName>
|
||||||
|
namespace: <releasesEnviorment>
|
||||||
|
chart: ./charts/<name>
|
||||||
|
values: []
|
||||||
|
|
||||||
|
- name: <releasesName>
|
||||||
|
namespace: <releasesEnviorment>
|
||||||
|
chart: ./charts/<name>
|
||||||
|
values: [./values/<environment>/<name>]
|
||||||
|
|
||||||
|
- ...
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Info:** using default fake base64 values and not specify custom values can break execution.
|
||||||
Reference in New Issue
Block a user