Skip to content

⛵ Helm chart to deploy the FAIRscape framework on Kubernetes and OpenShift

License

Notifications You must be signed in to change notification settings

MaastrichtU-IDS/fairscape-helm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FAIRscape Helm chart

Test Fairscape Helm Chart Validate Helm chart

Some links:

Defining a Helm chart

To redeploy easily FAIRscape on any Kubernetes cluster.

Check the documentation to create a Helm chart:

How to build the Helm chart

  • Define parameters go to values.yaml (variables and their values to be used by the templates)
  • Then the deployment is defined in templates/deployment.yaml and can use variables defined in values.yaml
  • Charts/ folder is for external charts dependencies (if we want to define FAIRscape using multiple charts for modularity)

Added: defined OpenShift Route in the Helm chart (alongside Ingress)

Test run the chart

Check if the Helm chart is properly defined:

helm lint fairscape

To run the chart in dry-run mode:

helm install --dry-run --debug ./fairscape --set service.internalPort=8080 --generate-name

Deploy the chart

Check the fairscape/values.yaml file to see the parameters of the chart.

  • Deploy the chart on OpenShift DSRI:
helm install fairscape ./fairscape --set service.type=NodePort,serviceAccount.name=anyuid,openshiftRoute.enabled=true

We override service.type and serviceAccount.name from the values.yaml file

  • Or deploy on Kubernetes with Ingress routes:
helm install fairscape ./fairscape --set service.type=NodePort,ingress.enabled=true

Update the chart

Upgrade the deployed chart using local source code:

helm upgrade fairscape ./fairscape --set service.type=NodePort,serviceAccount.name=anyuid,openshiftRoute.enabled=true

Uninstall the chart

helm uninstall fairscape

Known issues

Helm Swagger API validation reject when we provide an empty string as host ""

Current fix: host is hardcoded as "" in the template instead of using value from values.yaml

It was previously (in templates/openshiftRoute.yaml):

spec:
  host: {{ .Values.openshiftRoute.host }}

Setup the triplestore

Recommended to use Stardog (licensed triplestore) for its path explanation feature

About

⛵ Helm chart to deploy the FAIRscape framework on Kubernetes and OpenShift

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages