1
0
Fork 0
molgenis-ops-docker-helm/molgenis/templates/deployment.yaml

77 lines
2.3 KiB
YAML
Raw Normal View History

2018-09-07 09:50:03 +02:00
apiVersion: apps/v1beta2
kind: Deployment
metadata:
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
name: {{ template "molgenis.fullname" . }}
labels:
app: {{ template "molgenis.name" . }}
chart: {{ template "molgenis.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "molgenis.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ template "molgenis.name" . }}
release: {{ .Release.Name }}
spec:
containers:
- name: molgenis
{{- with .Values.molgenis }}
2018-09-07 16:51:41 +02:00
image: {{ .image.repository }}/{{ .image.name }}:{{ .image.tag }}
2018-09-07 09:50:03 +02:00
imagePullPolicy: {{ .image.pullPolicy }}
env:
- name: molgenis.home
value: /home/molgenis
- name: opencpu.uri.host
2018-09-07 16:51:41 +02:00
value: {{ .services.opencpu.uriHost }}
2018-09-07 09:50:03 +02:00
- name: elasticsearch.transport.addresses
2018-09-07 16:51:41 +02:00
value: {{ .services.elasticsearch.transportAddresses }}
2018-09-07 09:50:03 +02:00
- name: elasticsearch.cluster.name
2018-09-07 16:51:41 +02:00
value: {{ .services.elasticsearch.clusterName }}
2018-09-07 09:50:03 +02:00
- name: db_uri
2018-09-07 16:51:41 +02:00
value: jdbc:postgresql://{{ .services.postgres.host }}/{{ .services.postgres.scheme }}
2018-09-07 09:50:03 +02:00
- name: db_user
2018-09-07 16:51:41 +02:00
value: {{ .services.postgres.user }}
2018-09-07 09:50:03 +02:00
- name: db_password
2018-09-07 16:51:41 +02:00
value: {{ .services.postgres.password }}
2018-09-07 09:50:03 +02:00
- name: admin.password
value: {{ .adminPassword }}
- name: CATALINA_OPTS
2018-09-07 16:51:41 +02:00
value: {{ .javaOpts }}
2018-09-07 09:50:03 +02:00
ports:
- containerPort: 8080
# livenessProbe:
# httpGet:
# path: /
# port: 8080
# readinessProbe:
# httpGet:
# path: /api/v2/version
# port: 8080
resources:
{{ toYaml .resources | indent 12 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}