incore
by NCSA
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 listNote: 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.
| Parameter | Description | Default |
|---|---|---|
| ingress.hosts[0].host | ingress rule for incore | incore.example.com |
| ingress.traefik | Use Traefik V2 middleware | false |
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
- Create the PersistentVolume
- Create the PersistentVolumeClaim
- 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartincore is pinned at v1.38.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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