forked from inveniosoftware/helm-invenio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ImperialCollegeLondon/imperial_deployment
Imperial deployment
- Loading branch information
Showing
8 changed files
with
140 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# [Beta] Invenio Helm Chart | ||
# [Beta] Invenio Helm Chart v. 0.2.1 | ||
|
||
This repository contains the helm chart to deploy an Invenio instance. | ||
|
||
|
@@ -21,6 +21,16 @@ change. | |
- [Kubernetes](README-Kubernetes.md) | ||
- [OpenShift](README-OpenShift.md) | ||
|
||
## Dependencies | ||
This Helm chart uses Bitnami charts as [dependencies](https://helm.sh/docs/chart_best_practices/dependencies/) | ||
for the following exact pinned versions: | ||
* Opensearch 1.0.0 ([values.yaml](https://github.com/bitnami/charts/blob/opensearch/1.0.0/bitnami/opensearch/values.yaml)) | ||
* PostgreSQL 14.0.1 ([values.yaml](https://github.com/bitnami/charts/blob/postgresql/14.0.1/bitnami/postgresql/values.yaml)) | ||
* RabbitMQ 12.9.3 ([values.yaml](https://github.com/bitnami/charts/blob/rabbitmq/12.9.3/bitnami/rabbitmq/values.yaml)) | ||
* Redis 18.12.0 ([values.yaml](https://github.com/bitnami/charts/blob/redis/18.12.0/bitnami/redis/values.yaml)) | ||
|
||
Each one of them has a persistent volume claim for 8gb by default. Note that by default Redis will spin up 3 replicas. | ||
|
||
## Configuration | ||
|
||
:warning: Before installing you need to configure two things in your | ||
|
@@ -30,7 +40,7 @@ change. | |
- The web/worker docker images. If you need credentials you can see how to set | ||
them up in [Kubernetes](README-Kubernetes/#docker-credentials). | ||
|
||
``` yaml | ||
```yaml | ||
host: yourhost.localhost | ||
|
||
web: | ||
|
@@ -52,21 +62,16 @@ invenio: | |
demo_data: true # for a demo set of records | ||
default_users: # for creating users on install | ||
"[email protected]": "password" | ||
secret-key: "my-very-safe-secret" | ||
secret_key: "my-very-safe-secret" | ||
rabbitmq: | ||
default_password: "mq_password" | ||
# Edit the following URI with the values from just above | ||
celery_broker_uri: "amqp://guest:mq_password@mq:5672/" | ||
auth: | ||
password: "mq_password" | ||
postgresql: | ||
user: "invenio" | ||
password: "db_password" | ||
host: "db" | ||
port: "5432" | ||
database: "invenio" | ||
# Edit the following URI with the values from just above | ||
sqlalchemy_db_uri: "postgresql+psycopg2://invenio:db_password@db:5432/invenio" | ||
auth: | ||
password: "db_password" | ||
``` | ||
|
||
It's however **strongly advised** to override them either through a value file | ||
|
@@ -80,8 +85,8 @@ flags can be used in the same command. | |
```bash | ||
DB_PASSWORD=$(openssl rand -hex 8) | ||
helm install -f safe-values.yaml \ | ||
--set search.password=$SEARCH_PASSWORD \ | ||
--set postgresql.password=$DB_PASSWORD \ | ||
--set rabbitmq.auth.password=$RABBITMQ_PASSWORD \ | ||
--set postgresql.auth.password=$DB_PASSWORD \ | ||
invenio ./invenio-k8s --namespace invenio | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kind: StorageClass | ||
apiVersion: storage.k8s.io/v1 | ||
metadata: | ||
name: azure-invenio-storage-class | ||
provisioner: file.csi.azure.com | ||
allowVolumeExpansion: true | ||
mountOptions: | ||
- dir_mode=0777 | ||
- file_mode=0777 | ||
- uid=0 | ||
- gid=0 | ||
- mfsymlinks | ||
- cache=strict | ||
- actimeo=30 | ||
- nobrl # disable sending byte range lock requests to the server and for applications which have challenges with posix locks | ||
parameters: | ||
skuName: Standard_LRS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
|
||
invenio: | ||
init: true # initiates db, index, and admin roles | ||
hostname: "icl-invenio-dev.uksouth.cloudapp.azure.com" | ||
secret_key: "REPLACE-ME" | ||
security_login_salt: "REPLACE-ME" | ||
csrf_secret_salt: "REPLACE-ME" | ||
create_fixtures: true | ||
import_test_data: true | ||
|
||
web: | ||
image: "ghcr.io/imperialcollegelondon/fair-data-repository:develop" | ||
readinessProbe: | ||
failureThreshold: 3 | ||
initialDelaySeconds: 60 | ||
periodSeconds: 15 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
startupProbe: | ||
failureThreshold: 3 | ||
initialDelaySeconds: 60 | ||
periodSeconds: 15 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
resources: | ||
requests: | ||
cpu: 750m | ||
memory: 1Gi | ||
limits: | ||
cpu: 1000m | ||
memory: 2Gi | ||
|
||
worker: | ||
image: "ghcr.io/imperialcollegelondon/fair-data-repository:develop" | ||
livenessProbe: | ||
initialDelaySeconds: 120 | ||
|
||
persistence: | ||
enabled: true | ||
storage_class: "azure-invenio-storage-class" | ||
|
||
haproxy: | ||
enabled: false | ||
|
||
flower: | ||
enabled: false | ||
|
||
rabbitmq: | ||
auth: | ||
password: "REPLACE-ME" | ||
|
||
postgresql: | ||
auth: | ||
password: "REPLACE-ME" | ||
|
||
ingress: | ||
enabled: true | ||
class: "webapprouting.kubernetes.azure.com" | ||
|
||
# Certmanager | ||
podLabels: | ||
azure.workload.identity/use: "true" | ||
serviceAccount: | ||
labels: | ||
azure.workload.identity/use: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters