Compare commits
36 Commits
chore/jenk
...
fix/links
Author | SHA1 | Date | |
---|---|---|---|
edc62f0bcc | |||
d4a8a3ed42 | |||
d4f2dadb06 | |||
f440437862 | |||
71a0889ad8 | |||
f43b21bcc6 | |||
367c63eaa5 | |||
55ad5b26fb | |||
86d6dfb86b | |||
b58a1d2042 | |||
28bf98e6b2 | |||
26d366f1a1 | |||
b64ee00cff | |||
2190ada376 | |||
f6905334e1 | |||
f94e6da6e3 | |||
b73fd578ea | |||
486ab89b41 | |||
d8b8bd9a22 | |||
4e6349dacb | |||
4312e92860 | |||
02f7b7de1b | |||
2a1e9eacbb | |||
395292cf37 | |||
62bba3fcdd | |||
beeb59bbb3 | |||
4b5f7deb16 | |||
a3d8adcdde | |||
d0c02147b8 | |||
24781ff4ff | |||
9435220896 | |||
e220cb736e | |||
3e78e896a3 | |||
dfd8872e58 | |||
7048bf3655 | |||
fd86066cee |
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
.idea
|
.idea
|
||||||
*.iml
|
*.iml
|
||||||
|
target
|
40
Jenkinsfile
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
kubernetes {
|
||||||
|
label 'helm'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
container('chart-testing') {
|
||||||
|
sh "chart_test.sh --no-install --all"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Package') {
|
||||||
|
steps {
|
||||||
|
container('chart-testing'){
|
||||||
|
sh 'mkdir target'
|
||||||
|
sh 'for dir in charts/*; do helm package --destination target "$dir"; done'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
when {
|
||||||
|
branch 'master'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
container('vault') {
|
||||||
|
script {
|
||||||
|
env.NEXUS_USER = sh(script: 'vault read -field=username secret/ops/account/nexus', returnStdout: true)
|
||||||
|
env.NEXUS_PWD = sh(script: 'vault read -field=password secret/ops/account/nexus', returnStdout: true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
container('alpine') {
|
||||||
|
sh 'set +x; for chart in target/*; do curl -L -u $NEXUS_USER:$NEXUS_PWD http://registry.molgenis.org/repository/helm/ --upload-file "$chart"; done'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
README.md
@ -101,12 +101,11 @@ kubectl get pods --namespace=*#namespace of application#*
|
|||||||
|
|
||||||
This repository is serves also as a catalogue for Rancher. We have serveral apps that are served through this repoistory. e.g.
|
This repository is serves also as a catalogue for Rancher. We have serveral apps that are served through this repoistory. e.g.
|
||||||
|
|
||||||
- [Jenkins](molgenis-jenkins/README.md)
|
- [Jenkins](charts/molgenis-jenkins/README.md)
|
||||||
- [NEXUS](molgenis-nexus/README.md)
|
- [NEXUS](charts/molgenis-nexus/README.md)
|
||||||
- [HTTPD](molgenis-httpd/README.md)
|
- [HTTPD](charts/molgenis-httpd/README.md)
|
||||||
- [MOLGENIS](molgenis/README.md)
|
- [MOLGENIS](charts/molgenis/README.md)
|
||||||
- [MOLGENIS preview](molgenis-preview/README.md)
|
- [MOLGENIS vault](charts/molgenis-vault/README.md)
|
||||||
- [MOLGENIS vault](molgenis-vault/README.md)
|
|
||||||
|
|
||||||
### Useful commands
|
### Useful commands
|
||||||
You can you need to know to easily develop and deploy helm-charts
|
You can you need to know to easily develop and deploy helm-charts
|
||||||
|
12
charts/molgenis-httpd/Chart.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
appVersion: "1.0"
|
||||||
|
description: HTTPD for MOLGENIS
|
||||||
|
name: molgenis-httpd
|
||||||
|
version: 0.1.0
|
||||||
|
sources:
|
||||||
|
- https://github.com/molgenis/molgenis-ops-docker-helm.git
|
||||||
|
Icon: https://raw.githubusercontent.com/molgenis/molgenis-ops-docker-helm/master/charts/molgenis-httpd/catalogIcon-molgenis-httpd.svg
|
||||||
|
home: http://httpd.apache.org
|
||||||
|
maintainers:
|
||||||
|
- name: sidohaakma
|
||||||
|
- name: fdlk
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
@ -48,4 +48,4 @@ nodeSelector: {}
|
|||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
11
charts/molgenis-jenkins/Chart.yaml
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
name: molgenis-jenkins
|
||||||
|
home: https://jenkins.io/
|
||||||
|
version: 0.8.1
|
||||||
|
appVersion: 2.138.1
|
||||||
|
description: Molgenis installation for the jenkins chart.
|
||||||
|
sources:
|
||||||
|
- https://github.com/molgenis/molgenis-ops-docker-helm.git
|
||||||
|
icon: https://raw.githubusercontent.com/molgenis/molgenis-ops-docker-helm/master/charts/molgenis-jenkins/catalogIcon-molgenis-jenkins.svg
|
||||||
|
maintainers:
|
||||||
|
- name: fdlk
|
||||||
|
- name: sidohaakma
|
@ -75,6 +75,10 @@ Token used by Jenkins to authenticate on the [RuG Webhosting Gogs](https://git.w
|
|||||||
| `secret.gogs.user` | username for the account | `p281392` |
|
| `secret.gogs.user` | username for the account | `p281392` |
|
||||||
| `secret.gogs.token` | token for the account | `xxxx` |
|
| `secret.gogs.token` | token for the account | `xxxx` |
|
||||||
|
|
||||||
|
|
||||||
|
#### Slack
|
||||||
|
The Slack integration is done mostly in the Jenkinsfile of each project. It is sufficient to only add the plugin to the Jenkins configuration in Helm.
|
||||||
|
|
||||||
#### Legacy:
|
#### Legacy:
|
||||||
|
|
||||||
##### Docker Hub
|
##### Docker Hub
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
@ -1,3 +1,5 @@
|
|||||||
|
# Helm in Jenkins
|
||||||
|
|
||||||
To be able to run helm inside a jenkins pod, you'll need to
|
To be able to run helm inside a jenkins pod, you'll need to
|
||||||
* create a role in the namespace where tiller is installed
|
* create a role in the namespace where tiller is installed
|
||||||
* bind that role to the user that jenkins pods run as
|
* bind that role to the user that jenkins pods run as
|
@ -14,6 +14,7 @@ jenkins:
|
|||||||
- github-oauth:0.29
|
- github-oauth:0.29
|
||||||
- gogs-webhook:1.0.14
|
- gogs-webhook:1.0.14
|
||||||
- github-scm-trait-commit-skip:0.1.1
|
- github-scm-trait-commit-skip:0.1.1
|
||||||
|
- slack:2.3
|
||||||
Security:
|
Security:
|
||||||
UseGitHub: false
|
UseGitHub: false
|
||||||
GitHub:
|
GitHub:
|
||||||
@ -582,8 +583,42 @@ jenkins:
|
|||||||
cpu: "1"
|
cpu: "1"
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
NodeSelector: {}
|
NodeSelector: {}
|
||||||
|
helm:
|
||||||
|
Label: helm
|
||||||
|
NodeUsageMode: EXCLUSIVE
|
||||||
|
Containers:
|
||||||
|
chart-testing:
|
||||||
|
Image: "quay.io/helmpack/chart-testing"
|
||||||
|
ImageTag: v1.1.0
|
||||||
|
Command: cat
|
||||||
|
WorkingDir: /home/jenkins
|
||||||
|
TTY: true
|
||||||
|
alpine:
|
||||||
|
Image: "spotify/alpine"
|
||||||
|
Command: cat
|
||||||
|
WorkingDir: /home/jenkins
|
||||||
|
TTY: true
|
||||||
|
vault:
|
||||||
|
Image: "vault"
|
||||||
|
Command: cat
|
||||||
|
WorkingDir: /home/jenkins
|
||||||
|
TTY: true
|
||||||
|
EnvVars:
|
||||||
|
- type: Secret
|
||||||
|
key: VAULT_TOKEN
|
||||||
|
secretName: molgenis-pipeline-vault-secret
|
||||||
|
secretKey: token
|
||||||
|
- type: Secret
|
||||||
|
key: VAULT_SKIP_VERIFY
|
||||||
|
secretName: molgenis-pipeline-vault-secret
|
||||||
|
secretKey: skipVerify
|
||||||
|
- type: Secret
|
||||||
|
key: VAULT_ADDR
|
||||||
|
secretName: molgenis-pipeline-vault-secret
|
||||||
|
secretKey: addr
|
||||||
|
NodeSelector: {}
|
||||||
|
|
||||||
#secret contains configuration for the kubernetes secrets that jenkins can access
|
# secret contains configuration for the kubernetes secrets that jenkins can access
|
||||||
secret:
|
secret:
|
||||||
# vault configures the vault secret
|
# vault configures the vault secret
|
||||||
vault:
|
vault:
|
||||||
@ -605,4 +640,4 @@ secret:
|
|||||||
# dockerHubPassword contains password for hub.docker.com
|
# dockerHubPassword contains password for hub.docker.com
|
||||||
dockerHub:
|
dockerHub:
|
||||||
user: molgenisci
|
user: molgenisci
|
||||||
password: xxxx
|
password: xxxx
|
12
charts/molgenis-nexus/Chart.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
appVersion: "1.0"
|
||||||
|
description: Nexus stack for MOLGENIS
|
||||||
|
name: molgenis-nexus
|
||||||
|
version: 0.4.2
|
||||||
|
sources:
|
||||||
|
- https://github.com/molgenis/molgenis-ops-docker-helm.git
|
||||||
|
icon: https://raw.githubusercontent.com/molgenis/molgenis-ops-docker-helm/master/charts/molgenis-nexus/catalogIcon-molgenis-nexus.svg
|
||||||
|
home: https://www.sonatype.com/nexus-repository-oss
|
||||||
|
maintainers:
|
||||||
|
- name: sidohaakma
|
||||||
|
- name: fdlk
|
69
charts/molgenis-nexus/README.md
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
# MOLGENIS - NEXUS Helm Chart
|
||||||
|
|
||||||
|
NEXUS repository for kubernetes to deploy on a kubernetes cluster with NFS-share
|
||||||
|
|
||||||
|
## Chart Details
|
||||||
|
|
||||||
|
This chart will deploy:
|
||||||
|
|
||||||
|
- 1 NEXUS-nfs initialization container
|
||||||
|
|
||||||
|
We need this container to avoid permission issues on the NEXUS docker
|
||||||
|
- 1 NEXUS container
|
||||||
|
- 1 MOLGENIS-httpd container (to proxy the registry and docker to one domain)
|
||||||
|
|
||||||
|
## Backup restore
|
||||||
|
There are two steps in restoring the NEXUS.
|
||||||
|
|
||||||
|
- Database
|
||||||
|
- Blobstore
|
||||||
|
|
||||||
|
### Restore the database
|
||||||
|
Go to the commandline:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl get pv
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
| NAME | CAPACITY | ACCESS | MODES | RECLAIM | POLICY | STATUS | CLAIM | STORAGECLASS | REASON | AGE |
|
||||||
|
| ---- | -------- | ------ | ----- | ------- | ------ | ------ | ----- | ------------ | ------ | --- |
|
||||||
|
| pvc-45988f55-900f-11e8-a0b4-005056a51744 | 30G | RWX | | Retain | Bound | molgenis-nexus/molgenis-nfs-claim | nfs-provisioner-retain | | | 33d |
|
||||||
|
| pvc-3984723d-220f-14e8-a98a-skjhf88823kk | 30G | RWO | | Delete | Bound | molgenis-test/molgenis-nfs-claim | nfs-provisioner | | | 33d |
|
||||||
|
```
|
||||||
|
|
||||||
|
The persistent volume is the one in the molgenis-nexus namespace.
|
||||||
|
|
||||||
|
Go to the NFS-provisioner to the path of the persistent volume:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ls -t --full-time | head -7 | xargs cp ../restore-from-backup/
|
||||||
|
```
|
||||||
|
|
||||||
|
### Restore the blobstore
|
||||||
|
You can copy the directory ```blobs``` to the target persistent volume ```/ blobs```.
|
||||||
|
|
||||||
|
You can now bring the NEXUS back up.
|
||||||
|
|
||||||
|
## Installing the Chart
|
||||||
|
|
||||||
|
You can test in install the chart by executing:
|
||||||
|
|
||||||
|
```helm lint .```
|
||||||
|
|
||||||
|
To test if your helm chart-syntax is right and:
|
||||||
|
|
||||||
|
```helm install . --dry-run --debug```
|
||||||
|
|
||||||
|
To test if your hem chart works and:
|
||||||
|
|
||||||
|
```helm install .```
|
||||||
|
|
||||||
|
To deploy it on the cluster.
|
||||||
|
|
||||||
|
```curl -L -u xxxx:xxxx http://registry.molgenis.org/repository/helm/ --upload-file molgenis-x.x.x.tgz```
|
||||||
|
|
||||||
|
To push it to the registry
|
||||||
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
@ -0,0 +1,65 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: {{ .Values.nexus.name }}
|
||||||
|
labels:
|
||||||
|
app: {{ .Values.nexus.name }}
|
||||||
|
environment: {{ .Values.environment }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.replicaCount }}
|
||||||
|
strategy:
|
||||||
|
type: {{ .Values.nexus.strategy.type }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ .Values.nexus.selector }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: {{ .Values.nexus.name }}
|
||||||
|
creationTimestamp: null
|
||||||
|
spec:
|
||||||
|
restartPolicy: {{ .Values.nexus.restartPolicy }}
|
||||||
|
initContainers:
|
||||||
|
- name: nexus-nfs
|
||||||
|
image: busybox
|
||||||
|
command: ["sh", "-c", "chown -R 200:200 /nexus-data"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: molgenis-nexus-nfs
|
||||||
|
mountPath: "/nexus-data"
|
||||||
|
containers:
|
||||||
|
- name: {{ .Values.nexus.name }}
|
||||||
|
image: "{{ .Values.nexus.image.repository }}:{{ .Values.nexus.image.tag }}"
|
||||||
|
imagePullPolicy: {{ .Values.nexus.image.pullPolicy }}
|
||||||
|
ports:
|
||||||
|
- containerPort: {{ .Values.nexus.port.ui }}
|
||||||
|
- containerPort: {{ .Values.nexus.port.docker }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: molgenis-nexus-nfs
|
||||||
|
mountPath: /nexus-data
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: {{ .Values.nexus.port.ui }}
|
||||||
|
initialDelaySeconds: 120
|
||||||
|
periodSeconds: 20
|
||||||
|
failureThreshold: 15
|
||||||
|
successThreshold: 1
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: {{ .Values.nexus.port.ui }}
|
||||||
|
initialDelaySeconds: 120
|
||||||
|
periodSeconds: 20
|
||||||
|
failureThreshold: 15
|
||||||
|
successThreshold: 1
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: molgenis-nexus-nfs
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.persistence.claim }}
|
||||||
|
|
||||||
|
{{- with .Values.nodeSelector }}
|
||||||
|
nodeSelector:
|
||||||
|
{{ toYaml . | indent 8 }}
|
||||||
|
{{- end }}
|
@ -36,17 +36,17 @@ spec:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
port: {{ .Values.nexusProxy.port }}
|
port: {{ .Values.nexusProxy.port }}
|
||||||
initialDelaySeconds: 90
|
initialDelaySeconds: 1500
|
||||||
periodSeconds: 5
|
periodSeconds: 20
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
port: {{ .Values.nexusProxy.port }}
|
port: {{ .Values.nexusProxy.port }}
|
||||||
initialDelaySeconds: 90
|
initialDelaySeconds: 150
|
||||||
periodSeconds: 5
|
periodSeconds: 20
|
||||||
failureThreshold: 5
|
failureThreshold: 15
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
|
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
@ -5,7 +5,7 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: "{{ $.Release.Name }}-ingress"
|
name: "{{ $.Release.Name }}-ingress"
|
||||||
labels:
|
labels:
|
||||||
app: httpd
|
app: {{ $.Values.nexusProxy.name }}
|
||||||
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
|
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
|
||||||
release: "{{ $.Release.Name }}"
|
release: "{{ $.Release.Name }}"
|
||||||
heritage: "{{ $.Release.Service }}"
|
heritage: "{{ $.Release.Service }}"
|
@ -13,7 +13,7 @@ nexus:
|
|||||||
selector: nexus
|
selector: nexus
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
image:
|
image:
|
||||||
repository: sonatype/nexus3
|
repository: molgenis/nexus3
|
||||||
tag: latest
|
tag: latest
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
port:
|
port:
|
||||||
@ -32,8 +32,8 @@ nexusProxy:
|
|||||||
selector: nexus-proxy
|
selector: nexus-proxy
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
image:
|
image:
|
||||||
repository: registry.webhosting.rug.nl/molgenis/httpd
|
repository: molgenis/httpd
|
||||||
tag: lts
|
tag: latest
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
port: 80
|
port: 80
|
||||||
service:
|
service:
|
12
charts/molgenis-opencpu/Chart.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
appVersion: "1.0"
|
||||||
|
description: Opencpu stack for MOLGENIS
|
||||||
|
name: molgenis-opencpu
|
||||||
|
version: 0.1.1
|
||||||
|
sources:
|
||||||
|
- https://github.com/molgenis/molgenis-ops-docker-helm.git
|
||||||
|
icon: https://raw.githubusercontent.com/molgenis/molgenis-ops-docker-helm/master/charts/molgenis-opencpu/catalog-molgenis-opencpu.svg
|
||||||
|
home: https://www.opencpu.org
|
||||||
|
maintainers:
|
||||||
|
- name: sidohaakma
|
||||||
|
- name: fdlk
|
Before Width: | Height: | Size: 245 KiB After Width: | Height: | Size: 245 KiB |
12
charts/molgenis-vault/Chart.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
appVersion: "1.0"
|
||||||
|
description: MOLGENIS vault
|
||||||
|
name: molgenis-vault
|
||||||
|
version: 0.1.1
|
||||||
|
sources:
|
||||||
|
- https://github.com/molgenis/molgenis-ops-docker-helm.git
|
||||||
|
icon: https://raw.githubusercontent.com/molgenis/molgenis-ops-docker-helm/master/charts/molgenis-vault/catalogIcon-molgenis-vault.svg
|
||||||
|
home: https://github.com/coreos/vault-operator
|
||||||
|
maintainers:
|
||||||
|
- name: fdlk
|
||||||
|
- name: sidohaakma
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
@ -70,10 +70,10 @@ ui:
|
|||||||
# limits:
|
# limits:
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
#requests:
|
# requests:
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
vault:
|
vault:
|
||||||
auth: GITHUB
|
auth: GITHUB
|
||||||
url: https://vault.vault-operator:8200
|
url: https://vault.vault-operator:8200
|
12
charts/molgenis/Chart.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
appVersion: "1.0"
|
||||||
|
description: MOLGENIS - helm stack (in BETA)
|
||||||
|
name: molgenis
|
||||||
|
version: 0.4.3
|
||||||
|
sources:
|
||||||
|
- https://github.com/molgenis/molgenis-ops-docker-helm.git
|
||||||
|
icon: https://raw.githubusercontent.com/molgenis/molgenis-ops-docker-helm/master/charts/molgenis/catalogIcon-molgenis.svg
|
||||||
|
home: http://molgenis.org
|
||||||
|
maintainers:
|
||||||
|
- name: sidohaakma
|
||||||
|
- name: fdlk
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
@ -64,12 +64,12 @@ elasticsearch:
|
|||||||
javaOpts: "-Xms1g -Xmx1g"
|
javaOpts: "-Xms1g -Xmx1g"
|
||||||
clusterName: molgenis
|
clusterName: molgenis
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 2
|
cpu: 2
|
||||||
memory: 3Gi
|
memory: 3Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
persistence:
|
persistence:
|
||||||
claim: elasticsearch-nfs-claim
|
claim: elasticsearch-nfs-claim
|
||||||
size: 5Gi
|
size: 5Gi
|
@ -1,8 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
appVersion: "1.0"
|
|
||||||
description: HTTPD for MOLGENIS
|
|
||||||
name: molgenis-httpd
|
|
||||||
version: 0.1.0
|
|
||||||
sources:
|
|
||||||
- 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-httpd/catalogIcon-molgenis-httpd.svg
|
|
@ -1,8 +0,0 @@
|
|||||||
name: molgenis-jenkins
|
|
||||||
home: https://jenkins.io/
|
|
||||||
version: 0.7.1
|
|
||||||
appVersion: 2.121
|
|
||||||
description: Molgenis installation for the jenkins chart.
|
|
||||||
sources:
|
|
||||||
- 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-jenkins/catalogIcon-molgenis-jenkins.svg
|
|
@ -1,8 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
appVersion: "1.0"
|
|
||||||
description: Nexus stack for MOLGENIS
|
|
||||||
name: molgenis-nexus
|
|
||||||
version: 0.3.0
|
|
||||||
sources:
|
|
||||||
- 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-nexus/catalogIcon-molgenis-nexus.svg
|
|
@ -1,28 +0,0 @@
|
|||||||
# MOLGENIS - NEXUS Helm Chart
|
|
||||||
|
|
||||||
NEXUS repository for kubernetes to deploy on a kubernetes cluster with NFS-share
|
|
||||||
|
|
||||||
## Chart Details
|
|
||||||
|
|
||||||
This chart will deploy:
|
|
||||||
|
|
||||||
- 1 NEXUS container
|
|
||||||
- 1 MOLGENIS-httpd container ()to proxy the registry and docker to one domain)
|
|
||||||
|
|
||||||
## Installing the Chart
|
|
||||||
|
|
||||||
You can test in install the chart by executing:
|
|
||||||
|
|
||||||
```helm lint .```
|
|
||||||
|
|
||||||
To test if your helm chart-syntax is right and:
|
|
||||||
|
|
||||||
```helm install . --dry-run --debug```
|
|
||||||
|
|
||||||
To test if your hem chart works and:
|
|
||||||
|
|
||||||
```helm install .```
|
|
||||||
|
|
||||||
To deploy it on the cluster.
|
|
||||||
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
|||||||
apiVersion: extensions/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: {{ .Values.nexus.name }}
|
|
||||||
labels:
|
|
||||||
app: {{ .Values.nexus.name }}
|
|
||||||
environment: {{ .Values.environment }}
|
|
||||||
spec:
|
|
||||||
replicas: {{ .Values.replicaCount }}
|
|
||||||
strategy:
|
|
||||||
type: {{ .Values.nexus.strategy.type }}
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: {{ .Values.nexus.selector }}
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: {{ .Values.nexus.name }}
|
|
||||||
creationTimestamp: null
|
|
||||||
spec:
|
|
||||||
restartPolicy: {{ .Values.nexus.restartPolicy }}
|
|
||||||
containers:
|
|
||||||
- name: {{ .Values.nexus.name }}
|
|
||||||
image: "{{ .Values.nexus.image.repository }}:{{ .Values.nexus.image.tag }}"
|
|
||||||
imagePullPolicy: {{ .Values.nexus.image.pullPolicy }}
|
|
||||||
ports:
|
|
||||||
- containerPort: {{ .Values.nexus.port.ui }}
|
|
||||||
- containerPort: {{ .Values.nexus.port.docker }}
|
|
||||||
volumeMounts:
|
|
||||||
- name: molgenis-nexus-nfs
|
|
||||||
mountPath: "/nexus-data"
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: {{ .Values.nexus.port.ui }}
|
|
||||||
initialDelaySeconds: 90
|
|
||||||
periodSeconds: 20
|
|
||||||
failureThreshold: 5
|
|
||||||
successThreshold: 1
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: {{ .Values.nexus.port.ui }}
|
|
||||||
initialDelaySeconds: 90
|
|
||||||
periodSeconds: 5
|
|
||||||
failureThreshold: 5
|
|
||||||
successThreshold: 1
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: molgenis-nexus-nfs
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: {{ .Values.persistence.claim }}
|
|
||||||
|
|
||||||
{{- with .Values.nodeSelector }}
|
|
||||||
nodeSelector:
|
|
||||||
{{ toYaml . | indent 8 }}
|
|
||||||
{{- end }}
|
|
@ -1,8 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
appVersion: "1.0"
|
|
||||||
description: Opencpu stack for MOLGENIS
|
|
||||||
name: molgenis-opencpu
|
|
||||||
version: 0.1.1
|
|
||||||
sources:
|
|
||||||
- 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-opencpu/catalogIcon-molgenis-opencpu.svg
|
|
@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
appVersion: "1.0"
|
|
||||||
description: MOLGENIS vault
|
|
||||||
name: molgenis-vault
|
|
||||||
version: 0.1.1
|
|
||||||
icon: https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm/raw/master/molgenis-vault/catalogIcon-molgenis-vault.svg
|
|
@ -1,8 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
appVersion: "1.0"
|
|
||||||
description: MOLGENIS - helm stack (in BETA)
|
|
||||||
name: molgenis
|
|
||||||
version: 0.4.3
|
|
||||||
sources:
|
|
||||||
- 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/catalogIcon-molgenis.svg
|
|