Skip to content

Environment configuration for Bohrdatenmanagementsystem (BDMS)

License

Notifications You must be signed in to change notification settings

swisstopo/swissgeol-boreholes-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm Chart

Helm package for swissgeol-boreholes

swissgeol-boreholes is a web application which allows to easily manage structured data about boreholes. The source code is available at swisstopo/swissgeol-boreholes-suite.

TL;DR

# Add the swissgeol-boreholes Helm repository
helm repo add swissgeol-boreholes https://swisstopo.github.io/swissgeol-boreholes-config/

# Update the Helm repositories
helm repo update

# Install the swissgeol-boreholes Helm chart
helm install swissgeol-boreholes swissgeol-boreholes/swissgeol-boreholes \
  --namespace 'swissgeol-boreholes' \
  --create-namespace

Introduction

This chart bootstraps the swissgeol-boreholes web application as also the required services and deployments in a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.23+
  • Helm 3.8.0+

Installing the Chart

To install the chart with the release name swissgeol-boreholes:

helm install swissgeol-boreholes swissgeol-boreholes/swissgeol-boreholes

Configuring the Chart

The following table lists the configurable parameters of the swissgeol-boreholes chart and their default values.

Parameter Description Default
replicaCount Number of replicas 1
app.domain Base domain name boreholes.swissgeol.ch
app.version Docker image tag latest
dataextraction.version Data extraction API version latest
auth.authority Issuer URL ""
auth.audience Client id ""
auth.anonymousModeEnabled Enable anonymous mode false
database.host Database host ""
database.name Database name ""
database.username Database username ""
database.password Database password ""
s3.endpoint S3 endpoint ""
s3.bucket S3 bucket name ""
s3.accessKey S3 access key ""
s3.secretKey S3 secret key ""

Specify each parameter using the --set key=value argument to helm install. For example,

helm install swissgeol-boreholes swissgeol-boreholes/swissgeol-boreholes \
  --namespace 'swissgeol-boreholes' \
  --create-namespace \
  --set app.domain="dev-boreholes.swissgeol.ch" \
  --set app.version="edge"

For a full list of values, you can check the values.yaml file or use the helm show values swissgeol-boreholes/swissgeol-boreholes command. Refer to the corresponding Helm documentation for more information on how to override settings in a YAML formated file.

Additional commands

Refer to the Helm documentation for more information on how to install, upgrade, or delete a Helm chart.

Automated updates using Keel (optional)

This chart is configured to work with Keel, a tool that scans Kubernetes and Helm releases for outdated images and performs automated updates according the specified app.version setting. To enable Keel, you need to deploy it in your cluster using kubectl or Helm. Refer to the Keel documentation for more information on how to do that.

Validating the Chart

Validate with

helm lint charts/swissgeol-boreholes

or pretend to install the chart to the cluster and if there is some issue it will show the error.

helm install --dry-run swissgeol-boreholes charts/swissgeol-boreholes

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Environment configuration for Bohrdatenmanagementsystem (BDMS)

Topics

Resources

License

Stars

Watchers

Forks