From 8ead30676a4188e3b0f882d8d0981c4f80b2db63 Mon Sep 17 00:00:00 2001 From: Swordsteel Date: Fri, 25 Jul 2025 17:47:55 +0200 Subject: [PATCH] set up helm structure --- .gitignore | 1 + .../development-compose.yml | 0 .../hlaeja-compose.yml | 0 helm/.helmignore | 23 +++++++++++ helm/README.md | 35 +++++++++++++++++ helm/values/README.md | 39 +++++++++++++++++++ 6 files changed, 98 insertions(+) rename development-compose.yml => compose/development-compose.yml (100%) rename hlaeja-compose.yml => compose/hlaeja-compose.yml (100%) create mode 100644 helm/.helmignore create mode 100644 helm/README.md create mode 100644 helm/values/README.md diff --git a/.gitignore b/.gitignore index be89694..a306920 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ cert/ http/*/http-client.env.json +helm/values/*/ diff --git a/development-compose.yml b/compose/development-compose.yml similarity index 100% rename from development-compose.yml rename to compose/development-compose.yml diff --git a/hlaeja-compose.yml b/compose/hlaeja-compose.yml similarity index 100% rename from hlaeja-compose.yml rename to compose/hlaeja-compose.yml diff --git a/helm/.helmignore b/helm/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/helm/.helmignore @@ -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/ diff --git a/helm/README.md b/helm/README.md new file mode 100644 index 0000000..aac8c15 --- /dev/null +++ b/helm/README.md @@ -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=` when running `helmfile` or **risk** lose it all!!! ⚠️ + +> **Info:** limit even more by using `--selector namespace=,name=` + +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 +``` diff --git a/helm/values/README.md b/helm/values/README.md new file mode 100644 index 0000000..ec9c179 --- /dev/null +++ b/helm/values/README.md @@ -0,0 +1,39 @@ +# Hlæja Helm Environment + +To make the environment copy `values.yaml` file from `charts/` to `values/` then change the values you need. or make the file and add the value you like to overwrite. + +``` +helm/ +├── helmfile.yaml +├── values/ +│ ├── / +│ │ ├── .yaml +| │ └── ... +│ └── ... +└── charts/ + ├── / + │ ├── Chart.yaml + │ ├── values.yaml + │ └── templates/ + │ └──