production nexus

parent 0c767bd4
Pipeline #40801 failed with stages
in 51 minutes and 33 seconds
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nexus
spec:
replicas: 1
template:
metadata:
labels:
app: nexus
spec:
containers:
- image: sonatype/nexus3
imagePullPolicy: Always
name: nexus
###define environment for nexus(be consist with inspect nexus)
env:
- name: NEXUS_CONTEXT
value: nexus
ports:
# ports exposed for nexus itself(8081) and docker registry(5509)
- containerPort: 8081
- containerPort: 5509
volumeMounts:
- mountPath: /nexus-data
name: nexus-data-volume
volumes:
- name: nexus-data-volume
hostPath:
path: /nomad/nomadlab/servers/labtest-nomad/nexus/nexus-data
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment