Skip to content

Commit c5a515d

Browse files
committed
feat: add example helm charts for CoMPAS services
Signed-off-by: David Monichi <[email protected]>
1 parent baf3a9c commit c5a515d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+4735
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ target
99
.idea
1010
*.iml
1111

12+
helm/charts/compas-keycloak/charts
13+
helm/charts/compas-keycloak/Chart.lock
14+
1215
# Data Directories for Docker Compose
1316
# Ignore all files, except the README.md
1417
compas/data/**/*.*

helm/Readme.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# CoMPAS Helm deployment
2+
3+
This `helm` directory is meant to provide all informations needed to deploy CoMPAS on an existing Kubernetes cluster on different stages.
4+
5+
## Deploy to specific stage
6+
7+
Login into Kubernetes cluster and ensure that the `namespace == STAGE_NAME` already exists.
8+
9+
Here an example on how to deploy to stage `local` to a logged-in Kubernetes cluster:
10+
```
11+
$> export STAGE_NAME=local
12+
$> helmfile apply --namespace ${STAGE_NAME} --validate -f helmfile-database.yaml
13+
$> helmfile apply --namespace ${STAGE_NAME} --validate -f helmfile-compas.yaml
14+
```
15+
16+
### Remove deployed helm deployments
17+
18+
Here an example on how to deploy to stage `local`:
19+
```
20+
$> export STAGE_NAME=local
21+
$> helmfile apply --namespace ${STAGE_NAME} --validate -f helmfile-database.yaml
22+
$> helmfile apply --namespace ${STAGE_NAME} --validate -f helmfile-compas.yaml
23+
```
24+
25+
### Retrieve keycloak admin password after deployment
26+
27+
```
28+
$> kubectl -n local get secret keycloak -o jsonpath='{.data.admin-password}' | base64 -d && echo
29+
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v2
2+
name: keycloak
3+
description: CoMPAS keycloak umbrella chart
4+
version: 1.0.0
5+
appVersion: "24.4.6"
6+
7+
dependencies:
8+
- name: keycloak
9+
version: 24.4.6
10+
repository: https://charts.bitnami.com/bitnami

0 commit comments

Comments
 (0)