forked from m88i/nexus-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nexus3-centos.yaml
29 lines (29 loc) · 1.26 KB
/
nexus3-centos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
apiVersion: apps.m88i.io/v1alpha1
kind: Nexus
metadata:
name: nexus3
spec:
# Number of Nexus pod replicas (can't be increased after creation)
replicas: 1
# Here you can specify the image version to fulfill your needs. Defaults to docker.io/sonatype/nexus3:latest if useRedHatImage is set to false
#image: "docker.io/sonatype/nexus3:latest"
# let's use the centOS image since we do not have access to Red Hat Catalog
useRedHatImage: false
# Set the resources requests and limits for Nexus pods. See: https://help.sonatype.com/repomanager3/system-requirements
resources:
limits:
cpu: "2"
memory: "2Gi"
requests:
cpu: "1"
memory: "2Gi"
# Data persistence details
persistence:
# Should we persist Nexus data? Yes, please. (turn this to false only if you're evaluating this resource)
persistent: true
# Size of the volume reserved for the pods. Be aware that if replicas greater then 1, a RWX Persistent Volume will be created, hence
# make sure that your cluster has support for this configuration. Ignored if persistent is set to false. Defaults to 10Gi
volumeSize: 10Gi
networking:
# let the operator expose the Nexus server for you (the method will be the one that fits better for your cluster)
expose: true