Compare commits
21 Commits
chore/node
...
fix/links
Author | SHA1 | Date | |
---|---|---|---|
edc62f0bcc | |||
d4a8a3ed42 | |||
d4f2dadb06 | |||
f440437862 | |||
71a0889ad8 | |||
f43b21bcc6 | |||
367c63eaa5 | |||
55ad5b26fb | |||
86d6dfb86b | |||
b58a1d2042 | |||
28bf98e6b2 | |||
26d366f1a1 | |||
b64ee00cff | |||
2190ada376 | |||
f6905334e1 | |||
f94e6da6e3 | |||
b73fd578ea | |||
486ab89b41 | |||
4e6349dacb | |||
4312e92860 | |||
02f7b7de1b |
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
|
@ -1,7 +1,5 @@
|
|||||||
jenkins:
|
jenkins:
|
||||||
Master:
|
Master:
|
||||||
NodeSelector:
|
|
||||||
deployPod: "true"
|
|
||||||
HostName: jenkins.molgenis.org
|
HostName: jenkins.molgenis.org
|
||||||
ServiceType: ClusterIP
|
ServiceType: ClusterIP
|
||||||
InstallPlugins:
|
InstallPlugins:
|
||||||
@ -16,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:
|
||||||
@ -491,9 +490,7 @@ jenkins:
|
|||||||
Command: cat
|
Command: cat
|
||||||
WorkingDir: /home/jenkins
|
WorkingDir: /home/jenkins
|
||||||
TTY: true
|
TTY: true
|
||||||
NodeSelector: {
|
NodeSelector: {}
|
||||||
deployPod: "true"
|
|
||||||
}
|
|
||||||
node:
|
node:
|
||||||
Label: node-carbon
|
Label: node-carbon
|
||||||
NodeUsageMode: EXCLUSIVE
|
NodeUsageMode: EXCLUSIVE
|
||||||
@ -523,9 +520,7 @@ jenkins:
|
|||||||
key: VAULT_ADDR
|
key: VAULT_ADDR
|
||||||
secretName: molgenis-pipeline-vault-secret
|
secretName: molgenis-pipeline-vault-secret
|
||||||
secretKey: addr
|
secretKey: addr
|
||||||
NodeSelector: {
|
NodeSelector: {}
|
||||||
deployPod: "true"
|
|
||||||
}
|
|
||||||
molgenis-it:
|
molgenis-it:
|
||||||
InheritFrom: molgenis
|
InheritFrom: molgenis
|
||||||
Label: molgenis-it
|
Label: molgenis-it
|
||||||
@ -587,11 +582,43 @@ jenkins:
|
|||||||
limits:
|
limits:
|
||||||
cpu: "1"
|
cpu: "1"
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
NodeSelector: {
|
NodeSelector: {}
|
||||||
deployPod: "true"
|
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:
|
||||||
@ -613,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
|
@ -61,4 +61,9 @@ To test if your hem chart works and:
|
|||||||
|
|
||||||
To deploy it on the cluster.
|
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 |
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 |
@ -31,7 +31,5 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .service.port }}
|
- containerPort: {{ .service.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
|
||||||
nodeSelector:
|
|
||||||
{{ toYaml . | indent 8 }}
|
|
||||||
{{- end }}
|
|
@ -34,9 +34,7 @@ ingress:
|
|||||||
- name: opencpu.molgenis.org
|
- name: opencpu.molgenis.org
|
||||||
tls: []
|
tls: []
|
||||||
|
|
||||||
nodeSelector: {
|
nodeSelector: {}
|
||||||
deployPod: "true"
|
|
||||||
}
|
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
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
|
@ -38,7 +38,7 @@ Parameter | Description | Default
|
|||||||
`ui.image.repository` | Vault UI container image repository | `djenriquez/vault-ui`
|
`ui.image.repository` | Vault UI container image repository | `djenriquez/vault-ui`
|
||||||
`ui.image.tag` | Vault UI container image tag | `latest`
|
`ui.image.tag` | Vault UI container image tag | `latest`
|
||||||
`ui.resources` | Vault UI pod resource requests & limits | `{}`
|
`ui.resources` | Vault UI pod resource requests & limits | `{}`
|
||||||
`ui.nodeSelector` | node labels for Vault UI pod assignment | `{deployPod: "true"}`
|
`ui.nodeSelector` | node labels for Vault UI pod assignment | `{}`
|
||||||
`ui.ingress.enabled` | If true, Vault UI Ingress will be created | `true`
|
`ui.ingress.enabled` | If true, Vault UI Ingress will be created | `true`
|
||||||
`ui.ingress.annotations` | Vault UI Ingress annotations | `{}`
|
`ui.ingress.annotations` | Vault UI Ingress annotations | `{}`
|
||||||
`ui.ingress.host` | Vault UI Ingress hostname | `vault.molgenis.org`
|
`ui.ingress.host` | Vault UI Ingress hostname | `vault.molgenis.org`
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
@ -18,10 +18,6 @@ backupJob:
|
|||||||
# schedule gives the cron schedule for the backup job
|
# schedule gives the cron schedule for the backup job
|
||||||
schedule: "0 12 * * 1"
|
schedule: "0 12 * * 1"
|
||||||
|
|
||||||
vault-operator:
|
|
||||||
nodeSelector:
|
|
||||||
deployPod: "true"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# All of the config variables related to setting up the etcd-operator
|
# All of the config variables related to setting up the etcd-operator
|
||||||
# If you want more information about the variables exposed, please visit:
|
# If you want more information about the variables exposed, please visit:
|
||||||
@ -48,8 +44,6 @@ etcd-operator:
|
|||||||
restoreOperator:
|
restoreOperator:
|
||||||
image:
|
image:
|
||||||
tag: v0.9.2
|
tag: v0.9.2
|
||||||
nodeSelector:
|
|
||||||
deployPod: "true"
|
|
||||||
|
|
||||||
ui:
|
ui:
|
||||||
name: "vault-ui"
|
name: "vault-ui"
|
||||||
@ -76,11 +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: {}
|
||||||
deployPod: "true"
|
|
||||||
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
|
||||||
@ -94,8 +94,9 @@ persistence:
|
|||||||
enabled: true
|
enabled: true
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
nodeSelector:
|
nodeSelector: {
|
||||||
deployPod: "true"
|
deployPod: "true"
|
||||||
|
}
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
@ -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.4.2
|
|
||||||
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,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
|
|