-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Armand Leopold
committed
Mar 23, 2021
1 parent
a690270
commit 6860b98
Showing
10 changed files
with
154 additions
and
82 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
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,28 +1,33 @@ | ||
{{- if .Values.ingress.enabled -}} | ||
{{- $serviceName := print .Release.Name "-" .Values.image.name "-" .Values.service.type | lower -}} | ||
{{- $servicePort := print .Values.service.targetPort .Values.service.protocol | lower -}} | ||
|
||
apiVersion: networking.k8s.io/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ .Values.image.name }} | ||
labels: | ||
app: {{ .Values.image.name }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
name: {{ .Values.image.name }} | ||
{{- if .Values.ingress.annotations }} | ||
annotations: | ||
{{- range $key, $value := .Values.ingress.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
{{ toYaml .Values.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
spec: | ||
rules: | ||
- host: "{{ .Values.ingress.url }}" | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: {{ .Release.Name }}-{{ .Values.service.type | lower }} | ||
servicePort: {{ .Values.service.targetPort }}{{ .Values.service.protocol | lower }} | ||
{{- if .Values.ingress.tls }} | ||
{{- if .Values.ingress.tls }} | ||
tls: | ||
{{ toYaml .Values.ingress.tls | indent 4 }} | ||
{{- end -}} | ||
{{- end }} | ||
rules: | ||
{{- range .Values.ingress.hostnames }} | ||
- host: "{{ . }}" | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: {{ $serviceName }} | ||
servicePort: {{ $servicePort }} | ||
{{- end }} | ||
{{- end -}} |
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,44 +1,38 @@ | ||
# Replica count for script runner & website | ||
replicaCount: 1 | ||
|
||
# Images | ||
image: | ||
repository: registry.compagny.com/job-orchestrator | ||
replicaCount: 1 | ||
repository: registry.company.com/job-orchestrator | ||
tag: "1.3.0" | ||
pullPolicy: IfNotPresent | ||
name: job-orchestrator | ||
# Image Pull Registry Secret | ||
imagePullSecrets: registrysecret | ||
deployRegistry: false | ||
imagePullSecrets: registrysecret | ||
dataSecret: |- | ||
{"auths":{"registry.compagny.com":{"password":"","username":""}}} | ||
{"auths":{"registry.company.com":{"password":"","username":""}}} | ||
# Service discovery for Website | ||
service: | ||
type: ClusterIP | ||
targetPort: 80 | ||
protocol: TCP | ||
|
||
# Load Balancer | ||
ingress: | ||
enabled: true | ||
url: job-orchestrator.compagny.com | ||
hostnames: | ||
- job-orchestrator.company.com | ||
tls: | ||
- hosts: | ||
- job-orchestrator.compagny.com | ||
- job-orchestrator.company.com | ||
secretName: job-orchestrator | ||
|
||
# ConfigMap | ||
configMap: | ||
mountPath: /var/www/html/conf/ | ||
data: |- | ||
"conf" | ||
"" | ||
cifs: |- | ||
"conf" | ||
"" | ||
ldapConf: | ||
key: conf.php | ||
mountPath: /var/www/html/ldapconf/ | ||
data: |- | ||
"conf" | ||
"" |
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,3 +1,59 @@ | ||
# Redcap Helm chart : | ||
# Redcap | ||
|
||
This repository contains the Helm chart for Redcap. | ||
[Redcap](https://www.project-redcap.org/) REDCap is a secure web application for building and managing online surveys and databases. | ||
|
||
## Installing the Chart | ||
|
||
Before you can install the chart you will need to add the `curiedfcharts` repo to [Helm](https://helm.sh/). | ||
|
||
```shell | ||
helm repo add curiedfcharts https://curie-data-factory.github.io/helm-charts | ||
helm repo update | ||
``` | ||
|
||
After you've installed the repo you can install the chart. | ||
|
||
```shell | ||
helm upgrade --install --namespace default --values ./my-values.yaml my-release curiedfcharts/redcap | ||
``` | ||
|
||
| Parameter | Description | Default | | ||
|----------------------------------|--------------------------------------------------|---------------------------------------------------------------------| | ||
| `image.replicaCount` | Number of replicas to create | `1` | | ||
| `image.repository` | Image repository. | `registry.compagny.com/job-orchestrator` | | ||
| `image.tag` | Image Tag. | `1.3.0` | | ||
| `image.pullPolicy` | Image pull policy. | `IfNotPresent` | | ||
| `image.name` | Image name | `job-orchestrator` | | ||
| `image.deployRegistry` | If the image is stored in a private registry | `false` | | ||
| `image.imagePullSecrets` | Docker registry credentials Secret name | `registrysecret` | | ||
| `image.dataSecret` | Secret storing docker image registry credentials | `{"auths":{"registry.compagny.com":{"password":"","username":""}}}` | | ||
| `livenesscheck` | Enable Liveness check | `true` | | ||
| `service.type` | Service Type | `ClusterIP` | | ||
| `service.targetPort` | Service Port | `80` | | ||
| `service.protocol` | Service Protocol | `TCP` | | ||
| `ingress.enabled` | Expose application with ingress | `true` | | ||
| `ingress.hostnames` | Urls of exposed application | `['job-orchestrator.company.com']` | | ||
| `ingress.tls` | Array of TLS Hosts | `[]` | | ||
| `ingress.tls[hosts]` | Host name | `['job-orchestrator.company.com']` | | ||
| `ingress.tls[hosts[secretName]]` | Secret for the current host name | `job-orchestrator` | | ||
| `persistence.enabled` | Enable persisting data on PVC | `false` | | ||
| `persistence.existingClaim` | Does PVC already exist ? | `false` | | ||
| `persistence.size` | PVC Size | `50Gi` | | ||
| `persistence.storageClass` | PVC storage class | `nil` | | ||
| `persistence.accessMode` | PVC Access Mode | `ReadWriteOnce` | | ||
| `persistence.replicas` | PVC storage class replicas (if possible) | `1` | | ||
| `persistence.volumeName` | Directory name | `edocs` | | ||
| `persistence.mountPath` | Directory mount path | `/var/www/site/edocs` | | ||
| `CRON_TASK_SCHEDULE` | Redcap CRON Task Schedule | `0 * * * *` | | ||
| `DB_HOSTNAME` | Redcap DB Hostname | `nil` | | ||
| `DB_NAME` | Redcap DB Name | `nil` | | ||
| `DB_USERNAME` | Redcap DB Username | `nil` | | ||
| `DB_PASSWORD` | Redcap DB Password | `nil` | | ||
| `SMB_MOUNT_ENABLED` | Redcap Mount docs directory to Network Share | `true` | | ||
| `SMB_USER` | Network Share Username | `nil` | | ||
| `SMB_PASSWORD` | Network Share Password | `nil` | | ||
| `SMB_SOURCEPATH` | Network Share Source Path | `nil` | | ||
| `SMB_DESTPATH` | Network Share Destination Path | `nil` | | ||
| `SMB_DOMAIN` | Network Share Domain | `nil` | | ||
| `SALT` | Network Share SALT | `nil` | | ||
| `LDAP` | Redcap LDAP Auth configuration data | `nil` | |
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,10 +1,10 @@ | ||
{{- if .Values.deployRegistry -}} | ||
{{- if .Values.image.deployRegistry -}} | ||
apiVersion: v1 | ||
kind: Secret | ||
type: kubernetes.io/dockerconfigjson | ||
metadata: | ||
name: {{ .Values.imagePullSecrets }} | ||
name: {{ .Values.image.imagePullSecrets }} | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
.dockerconfigjson: {{ .Values.dataSecret }} | ||
.dockerconfigjson: {{ .Values.image.dataSecret }} | ||
{{- end -}} |
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