2018-06-25 19:33:02 +02:00
|
|
|
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 }}
|
2018-06-25 19:33:02 +02:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: {{ .Values.nexus.selector }}
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: {{ .Values.nexus.name }}
|
|
|
|
creationTimestamp: null
|
|
|
|
spec:
|
|
|
|
restartPolicy: {{ .Values.nexus.restartPolicy }}
|
2018-09-27 16:17:35 +02:00
|
|
|
initContainers:
|
|
|
|
- name: nexus-nfs
|
|
|
|
image: busybox
|
|
|
|
command: ["sh", "-c", "chown -R 200:200 /nexus-data"]
|
|
|
|
volumeMounts:
|
|
|
|
- name: molgenis-nexus-nfs
|
|
|
|
mountPath: "/nexus-data"
|
2018-06-25 19:33:02 +02:00
|
|
|
containers:
|
2018-09-27 16:17:35 +02:00
|
|
|
- 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 }}
|
2018-09-28 08:31:29 +02:00
|
|
|
initialDelaySeconds: 120
|
2018-09-27 16:17:35 +02:00
|
|
|
periodSeconds: 20
|
2018-09-28 08:31:29 +02:00
|
|
|
failureThreshold: 15
|
2018-09-27 16:17:35 +02:00
|
|
|
successThreshold: 1
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /
|
|
|
|
port: {{ .Values.nexus.port.ui }}
|
2018-09-28 08:31:29 +02:00
|
|
|
initialDelaySeconds: 120
|
|
|
|
periodSeconds: 20
|
|
|
|
failureThreshold: 15
|
2018-09-27 16:17:35 +02:00
|
|
|
successThreshold: 1
|
2018-09-20 16:50:46 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: molgenis-nexus-nfs
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: {{ .Values.persistence.claim }}
|
2018-06-27 11:33:55 +02:00
|
|
|
|
2018-09-20 16:50:46 +02:00
|
|
|
{{- with .Values.nodeSelector }}
|
|
|
|
nodeSelector:
|
|
|
|
{{ toYaml . | indent 8 }}
|
|
|
|
{{- end }}
|