incore

by NCSA

Helm chartv1.38.0App 6.3.0Verified publisher

Run your scientific analyses that model the impact of natural hazards on a community and the resilience of those communities.

About this chart

IN-CORE

IN-CORE, run your scientific analyses that model the impact of natural hazards on a community and the resilience of those communities.

The National Institute of Standards and Technology (NIST) funded the multi-university five-year Center of Excellence for Risk-Based Community Resilience Planning (CoE), headquartered at Colorado State University, to develop the measurement science to support community resilience assessment. Measurement science is implemented on a platform called Interdependent Networked Community Resilience Modeling Environment (IN-CORE). On IN-CORE, users can run scientific analyses that model the impact of natural hazards and resiliency against the impact on communities. The IN-CORE platform is built on a Kubernetes cluster with Docker container technology.

TL;DR;

$ helm repo add ncsa https://opensource.ncsa.illinois.edu/charts/
$ helm install incore ncsa/incore

For changes see CHANGELOG.

Introduction

This chart bootstraps the IN-CORE deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.16+
  • helm 3
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release ncsa/incore

The command deploys IN-CORE on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation. This will also install MongoDB, RabbitMQ, elasticsearch as well as some extractors.

Tip: List all releases using helm list Note: Using the jupyterhub helm chart, you can also run an instance of jupyterhub in your cluster

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

Needs to be written

The following table lists the configurable parameters of the IN-CORE chart and their default values.

ParameterDescriptionDefault
ingress.hosts[0].hostingress rule for incoreincore.example.com
ingress.traefikUse Traefik V2 middlewarefalse

Specify each parameter using the --set key=value[,key=value] argument to helm install. Or more convenient use a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml ncsa/incore

Since the ingress hostname is used in multiple places, it is recommended to use a variable in yaml to copy this information. For example:

hostname: &hostname incore-tst.ncsa.illinois.edu

ingress:
  hosts:
    - host: *hostname

      
keycloak:
  ingress:
    rules:
      - host: *hostname
        paths:
          - /auth/

Tip: You can use the default values.yaml to find the names of all options

Persistence

IN-CORE will use a persistent storage to store all data that is uploaded as well as is generated.

Existing PersistentVolumeClaims

  1. Create the PersistentVolume
  2. Create the PersistentVolumeClaim
  3. Install the chart

For an example of using existing PVC, see the file incore-pvc.yaml.

Deploy incore with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has incore on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartincore is pinned at v1.38.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply