1
0
Fork 0

updated production chart

This commit is contained in:
sido 2018-09-07 16:51:41 +02:00
parent 31567c281a
commit 3d93546b47
6 changed files with 81 additions and 25 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
appVersion: "1.0" appVersion: "1.0"
description: A Helm chart for Kubernetes description: MOLGENIS - helm stack for testing purposes
name: molgenis name: molgenis-preview
version: 0.2.0 version: 0.2.0
sources: sources:
- https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm.git - https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm.git

View File

@ -1,8 +1,8 @@
apiVersion: v1 apiVersion: v1
appVersion: "1.0" appVersion: "1.0"
description: A Helm chart for Kubernetes description: MOLGENIS - helm stack
name: molgenis name: molgenis
version: 0.2.0 version: 0.0.1
sources: sources:
- https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm.git - https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm.git
icon: https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm/raw/master/molgenis-preview/catalogIcon-molgenis.svg icon: https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm/raw/master/molgenis/catalogIcon-molgenis.svg

View File

@ -4,9 +4,10 @@ This chart is used for acceptance and production use cases.
## Containers ## Containers
This chart spins up a MOLGENIS instance with HTTPD. The created containers are: This chart spins up a MOLGENIS instance with HTTPD. The created containers are:
- HTTPD
- MOLGENIS - MOLGENIS
## MOLGENIS ## MOLGENIS
## HTTPD
## Firewall
Is defined

View File

@ -17,20 +17,64 @@ questions:
- "registry.hub.docker.com" - "registry.hub.docker.com"
- "registry.molgenis.org" - "registry.molgenis.org"
required: true required: true
group: "MOLGENIS - Version" group: "MOLGENIS"
label: Registry label: Registry
- variable: molgenis.image.tag - variable: molgenis.image.tag
default: "stable" default: "stable"
description: "Select a MOLGENIS version" description: "Select a MOLGENIS version (check the registry.molgenis.org or hub.docker.com for other tags)"
type: enum type: string
options:
- "latest"
- "stable"
- "7.1-stable"
- "7.0-stable"
required: true required: true
group: "MOLGENIS - Version" group: "MOLGENIS"
label: Version label: Version
- variable: molgenis.services.opencpu.uriHost
default: ""
description: "Specify the OpenCPU cluster"
type: string
required: true
group: "MOLGENIS"
label: OpenCPU cluster
- variable: molgenis.services.elasticsearch.clusterName
default: "molgenis"
description: "Set the index name of MOLGENIS"
type: string
required: true
group: "MOLGENIS"
label: Elasticsearch clustername
- variable: molgenis.services.elasticsearch.transportAddress
default: "localhost:9300"
description: "Set the transport address for the elasticsearch node communication port and low-level api (which we use)"
type: string
required: true
group: "MOLGENIS"
label: Elasticsearch transport address
- variable: molgenis.services.postgres.host
default: "localhost"
description: "Set the location of the postgres cluster"
type: string
required: true
group: "MOLGENIS"
label: Postgres cluster location
- variable: molgenis.services.postgres.scheme
default: "molgenis"
description: "Set the database scheme"
type: string
required: true
group: "MOLGENIS"
label: Database scheme
- variable: molgenis.services.postgres.user
default: "molgenis"
description: "Set user of the database scheme"
type: string
required: true
group: "MOLGENIS"
label: Database username
- variable: molgenis.services.postgres.password
default: "molgenis"
description: "Set the password of the database scheme"
type: string
required: true
group: "MOLGENIS"
label: Database password
- variable: molgenis.resources.limits.cpu - variable: molgenis.resources.limits.cpu
default: 1 default: 1
description: "CPU limit for this MOLGENIS instance" description: "CPU limit for this MOLGENIS instance"

View File

@ -26,27 +26,27 @@ spec:
containers: containers:
- name: molgenis - name: molgenis
{{- with .Values.molgenis }} {{- with .Values.molgenis }}
image: "{{ .image.repository }}/{{ .image.name }}:{{ .image.tag }}" image: {{ .image.repository }}/{{ .image.name }}:{{ .image.tag }}
imagePullPolicy: {{ .image.pullPolicy }} imagePullPolicy: {{ .image.pullPolicy }}
env: env:
- name: molgenis.home - name: molgenis.home
value: /home/molgenis value: /home/molgenis
- name: opencpu.uri.host - name: opencpu.uri.host
value: localhost value: {{ .services.opencpu.uriHost }}
- name: elasticsearch.transport.addresses - name: elasticsearch.transport.addresses
value: localhost:9300 value: {{ .services.elasticsearch.transportAddresses }}
- name: elasticsearch.cluster.name - name: elasticsearch.cluster.name
value: {{ $.Values.elasticsearch.clusterName }} value: {{ .services.elasticsearch.clusterName }}
- name: db_uri - name: db_uri
value: "jdbc:postgresql://localhost/{{ $.Values.postgres.db }}" value: jdbc:postgresql://{{ .services.postgres.host }}/{{ .services.postgres.scheme }}
- name: db_user - name: db_user
value: {{ $.Values.postgres.user }} value: {{ .services.postgres.user }}
- name: db_password - name: db_password
value: {{ $.Values.postgres.password }} value: {{ .services.postgres.password }}
- name: admin.password - name: admin.password
value: {{ .adminPassword }} value: {{ .adminPassword }}
- name: CATALINA_OPTS - name: CATALINA_OPTS
value: "{{ .javaOpts }}" value: {{ .javaOpts }}
ports: ports:
- containerPort: 8080 - containerPort: 8080
# livenessProbe: # livenessProbe:

View File

@ -19,7 +19,7 @@ molgenis:
image: image:
repository: registry.molgenis.org repository: registry.molgenis.org
name: molgenis/molgenis-app name: molgenis/molgenis-app
tag: 7.0.0-SNAPSHOT tag: stable
pullPolicy: Always pullPolicy: Always
adminPassword: admin adminPassword: admin
javaOpts: "-Xmx1g -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled" javaOpts: "-Xmx1g -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled"
@ -30,6 +30,17 @@ molgenis:
requests: requests:
cpu: 200m cpu: 200m
memory: 1Gi memory: 1Gi
services:
opencpu:
uriHost: localhost
elasticsearch:
transportAddresses: localhost:9300
clusterName: molgenis
postgres:
host: localhost
scheme: molgenis
user: molgenis
password: molgenis
nodeSelector: {} nodeSelector: {}