Skip to content

Commit

Permalink
feat: add example helm charts for CoMPAS services
Browse files Browse the repository at this point in the history
Signed-off-by: David Monichi <[email protected]>
  • Loading branch information
david-monichi committed Feb 11, 2025
1 parent baf3a9c commit c5a515d
Show file tree
Hide file tree
Showing 52 changed files with 4,735 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ target
.idea
*.iml

helm/charts/compas-keycloak/charts
helm/charts/compas-keycloak/Chart.lock

# Data Directories for Docker Compose
# Ignore all files, except the README.md
compas/data/**/*.*
Expand Down
29 changes: 29 additions & 0 deletions helm/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# CoMPAS Helm deployment

This `helm` directory is meant to provide all informations needed to deploy CoMPAS on an existing Kubernetes cluster on different stages.

## Deploy to specific stage

Login into Kubernetes cluster and ensure that the `namespace == STAGE_NAME` already exists.

Here an example on how to deploy to stage `local` to a logged-in Kubernetes cluster:
```
$> export STAGE_NAME=local
$> helmfile apply --namespace ${STAGE_NAME} --validate -f helmfile-database.yaml
$> helmfile apply --namespace ${STAGE_NAME} --validate -f helmfile-compas.yaml
```

### Remove deployed helm deployments

Here an example on how to deploy to stage `local`:
```
$> export STAGE_NAME=local
$> helmfile apply --namespace ${STAGE_NAME} --validate -f helmfile-database.yaml
$> helmfile apply --namespace ${STAGE_NAME} --validate -f helmfile-compas.yaml
```

### Retrieve keycloak admin password after deployment

```
$> kubectl -n local get secret keycloak -o jsonpath='{.data.admin-password}' | base64 -d && echo
```
10 changes: 10 additions & 0 deletions helm/charts/compas-keycloak/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: keycloak
description: CoMPAS keycloak umbrella chart
version: 1.0.0
appVersion: "24.4.6"

dependencies:
- name: keycloak
version: 24.4.6
repository: https://charts.bitnami.com/bitnami
Loading

0 comments on commit c5a515d

Please sign in to comment.