feature (molgenis-jenkins): Add molgenis-it pod template
This commit is contained in:
parent
f7b4d0d581
commit
2306bcb908
@ -1,6 +1,6 @@
|
|||||||
name: molgenis-jenkins
|
name: molgenis-jenkins
|
||||||
home: https://jenkins.io/
|
home: https://jenkins.io/
|
||||||
version: 0.2.5
|
version: 0.3.0
|
||||||
appVersion: 2.107
|
appVersion: 2.107
|
||||||
description: Molgenis installation for the jenkins chart.
|
description: Molgenis installation for the jenkins chart.
|
||||||
sources:
|
sources:
|
||||||
|
@ -15,12 +15,12 @@ data:
|
|||||||
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
|
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
|
||||||
<denyAnonymousReadAccess>true</denyAnonymousReadAccess>
|
<denyAnonymousReadAccess>true</denyAnonymousReadAccess>
|
||||||
</authorizationStrategy>
|
</authorizationStrategy>
|
||||||
{{- if .Values.jenkins.Master.Security.UseGitHub }}
|
{{- if .Values.Master.Security.UseGitHub }}
|
||||||
<securityRealm class="org.jenkinsci.plugins.GithubSecurityRealm">
|
<securityRealm class="org.jenkinsci.plugins.GithubSecurityRealm">
|
||||||
<githubWebUri>https://github.com</githubWebUri>
|
<githubWebUri>https://github.com</githubWebUri>
|
||||||
<githubApiUri>https://api.github.com</githubApiUri>
|
<githubApiUri>https://api.github.com</githubApiUri>
|
||||||
<clientID>{{ .Values.jenkins.Master.Security.Github.ClientID }}</clientID>
|
<clientID>{{ .Values.Master.Security.Github.ClientID }}</clientID>
|
||||||
<clientSecret>{{ .Values.jenkins.Master.Security.Github.ClientSecret }}</clientSecret>
|
<clientSecret>{{ .Values.Master.Security.Github.ClientSecret }}</clientSecret>
|
||||||
<oauthScopes>read:org,user:email</oauthScopes>
|
<oauthScopes>read:org,user:email</oauthScopes>
|
||||||
</securityRealm>
|
</securityRealm>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
@ -40,7 +40,7 @@ data:
|
|||||||
<templates>
|
<templates>
|
||||||
{{- range $podName, $pod := .Values.Pods }}
|
{{- range $podName, $pod := .Values.Pods }}
|
||||||
<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
|
<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
|
||||||
<inheritFrom></inheritFrom>
|
<inheritFrom>{{ $pod.InheritFrom | default "" }}</inheritFrom>
|
||||||
<name>{{ $podName }}</name>
|
<name>{{ $podName }}</name>
|
||||||
<instanceCap>2147483647</instanceCap>
|
<instanceCap>2147483647</instanceCap>
|
||||||
<idleMinutes>0</idleMinutes>
|
<idleMinutes>0</idleMinutes>
|
||||||
@ -94,6 +94,15 @@ data:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
<ttyEnabled>false</ttyEnabled>
|
<ttyEnabled>false</ttyEnabled>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
<envVars>
|
||||||
|
{{- range $index, $envVar := .EnvVars }}
|
||||||
|
<org.csanchez.jenkins.plugins.kubernetes.model.{{ .type }}EnvVar>
|
||||||
|
{{- range $key, $value := $envVar }}{{- if not (eq $key "type") }}
|
||||||
|
<{{ $key }}>{{ $value }}</{{ $key }}>
|
||||||
|
{{- end }}{{- end }}
|
||||||
|
</org.csanchez.jenkins.plugins.kubernetes.model.{{ .type }}EnvVar>
|
||||||
|
{{- end }}
|
||||||
|
</envVars>
|
||||||
{{- if .resources }}
|
{{- if .resources }}
|
||||||
{{- if .resources.requests }}
|
{{- if .resources.requests }}
|
||||||
<resourceRequestCpu>{{ .resources.requests.cpu | default "" }}</resourceRequestCpu>
|
<resourceRequestCpu>{{ .resources.requests.cpu | default "" }}</resourceRequestCpu>
|
||||||
|
@ -218,21 +218,6 @@ jenkins:
|
|||||||
Image: "spotify/alpine"
|
Image: "spotify/alpine"
|
||||||
Command: cat
|
Command: cat
|
||||||
TTY: true
|
TTY: true
|
||||||
# Hard to get these right memorywise!
|
|
||||||
# elasticsearch:
|
|
||||||
# Image: "elasticsearch"
|
|
||||||
# ImageTag: "5.5.1"
|
|
||||||
# Ports:
|
|
||||||
# - name: rest
|
|
||||||
# containerPort: "9200"
|
|
||||||
# - name: api
|
|
||||||
# containerPort: "9300"
|
|
||||||
# postgres:
|
|
||||||
# Image: "postgres"
|
|
||||||
# ImageTag: "9.6-alpine"
|
|
||||||
# Ports:
|
|
||||||
# - name: postgres
|
|
||||||
# containerPort: "5432"
|
|
||||||
EnvVars:
|
EnvVars:
|
||||||
- type: Secret
|
- type: Secret
|
||||||
key: PGP_PASSPHRASE
|
key: PGP_PASSPHRASE
|
||||||
@ -256,8 +241,68 @@ jenkins:
|
|||||||
key: GITHUB_TOKEN
|
key: GITHUB_TOKEN
|
||||||
secretName: molgenis-pipeline-env-secret
|
secretName: molgenis-pipeline-env-secret
|
||||||
secretKey: githubToken
|
secretKey: githubToken
|
||||||
# If needed
|
NodeSelector: {}
|
||||||
# ImagePullSecret: jenkins
|
molgenis-it:
|
||||||
|
InheritFrom: molgenis
|
||||||
|
Label: molgenis-it
|
||||||
|
NodeUsageMode: EXCLUSIVE
|
||||||
|
Containers:
|
||||||
|
elasticsearch:
|
||||||
|
Image: docker.elastic.co/elasticsearch/elasticsearch
|
||||||
|
ImageTag: 5.5.3
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "100m"
|
||||||
|
memory: "1Gi"
|
||||||
|
limits:
|
||||||
|
cpu: "1"
|
||||||
|
memory: "1500Mi"
|
||||||
|
EnvVars:
|
||||||
|
- type: KeyValue
|
||||||
|
key: ES_JAVA_OPTS
|
||||||
|
value: "-Xms512m -Xmx512m"
|
||||||
|
- type: KeyValue
|
||||||
|
key: cluster.name
|
||||||
|
value: molgenis
|
||||||
|
- type: KeyValue
|
||||||
|
key: bootstrap.memory_lock
|
||||||
|
value: "true"
|
||||||
|
- type: KeyValue
|
||||||
|
key: xpack.security.enabled
|
||||||
|
value: "false"
|
||||||
|
- type: KeyValue
|
||||||
|
key: discovery.type
|
||||||
|
value: single-node
|
||||||
|
postgres:
|
||||||
|
Image: postgres
|
||||||
|
ImageTag: 9.6-alpine
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "100m"
|
||||||
|
memory: "250Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "1"
|
||||||
|
memory: "250Mi"
|
||||||
|
EnvVars:
|
||||||
|
- type: KeyValue
|
||||||
|
key: POSTGRES_USER
|
||||||
|
value: molgenis
|
||||||
|
- type: KeyValue
|
||||||
|
key: POSTGRES_PASSWORD
|
||||||
|
value: molgenis
|
||||||
|
- type: KeyValue
|
||||||
|
key: POSTGRES_DB
|
||||||
|
value: molgenis
|
||||||
|
opencpu:
|
||||||
|
Image: molgenis/opencpu
|
||||||
|
AlwaysPullImage: true
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "100m"
|
||||||
|
memory: "256Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "1"
|
||||||
|
memory: "512Mi"
|
||||||
NodeSelector: {}
|
NodeSelector: {}
|
||||||
PipelineSecrets:
|
PipelineSecrets:
|
||||||
Env:
|
Env:
|
||||||
|
Loading…
Reference in New Issue
Block a user