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

45 lines
1.4 KiB
YAML
Raw Normal View History

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: {{ .Values.nexus.name }}
labels:
app: {{ .Values.nexus.name }}
environment: {{ .Values.environment }}
spec:
2018-06-25 22:53:22 +02:00
replicas: {{ .Values.replicaCount }}
2018-06-25 22:58:00 +02:00
strategy:
type: {{ .Values.nexus.strategy.type }}
selector:
matchLabels:
app: {{ .Values.nexus.selector }}
template:
metadata:
labels:
app: {{ .Values.nexus.name }}
creationTimestamp: null
spec:
2018-06-27 11:37:42 +02:00
volumes:
2018-06-27 18:06:39 +02:00
- name: {{ .Values.persistence.name }}
2018-06-27 11:37:42 +02:00
persistentVolumeClaim:
2018-06-27 18:06:39 +02:00
claimName: {{ .Values.persistence.name }}
restartPolicy: {{ .Values.nexus.restartPolicy }}
2018-06-27 17:02:59 +02:00
initContainers:
- name: volume-mount-nexus
image: busybox
2018-06-27 18:06:39 +02:00
command: ["sh", "-c", "chown -R 200:200 {{ .Values.persistence.mountPath }}"]
2018-06-27 17:02:59 +02:00
volumeMounts:
2018-06-27 18:08:12 +02:00
- name: {{ .Values.persistence.name }}
2018-06-27 18:06:39 +02:00
mountPath: "{{ .Values.persistence.mountPath }}"
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 }}
2018-06-27 11:37:42 +02:00
volumeMounts:
2018-06-27 18:06:39 +02:00
- name: {{ .Values.persistence.name }}
2018-06-27 11:37:42 +02:00
mountPath: "/nexus-data"
2018-06-27 11:33:55 +02:00