nexus3

by stevehipwell

Helm chartv5.27.0App 3.97.0Verified publisher

Helm chart for Sonatype Nexus 3 OSS.

About this chart

nexus3

Helm chart for Sonatype Nexus 3 OSS.

Homepage: https://www.sonatype.com/products/sonatype-nexus-repository

Maintainers

NameEmailUrl
stevehipwell[email protected]

Source Code

Installing the Chart

OCI Repository

To install the chart using the recommended OCI method you can use the following command.

helm upgrade --install nexus3 oci://ghcr.io/stevehipwell/helm-charts/nexus3 --version 5.27.0

Verification

As the OCI chart release is signed by Cosign you can verify the chart before installing it by running the following command.

cosign verify --certificate-oidc-issuer https://token.actions.githubusercontent.com --certificate-identity-regexp 'https://github\.com/action-stars/helm-workflows/\.github/workflows/release\.yaml@.+' --certificate-github-workflow-repository stevehipwell/helm-charts --certificate-github-workflow-name Release ghcr.io/stevehipwell/helm-charts/nexus3:5.27.0

Non-OCI Repository

Alternatively you can use the legacy non-OCI method via the following commands.

helm repo add stevehipwell https://stevehipwell.github.io/helm-charts/
helm upgrade --install nexus3 stevehipwell/nexus3 --version 5.27.0

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod scheduling. If an explicit label selector is not provided for pod affinity or pod anti-affinity one will be created from the pod selector labels.
automountServiceAccountTokenboolnilIf the service account token should be mounted to the pod, this overrides serviceAccount.automountToken.
bashImage.digeststringnilOptional image digest for the bash containers.
bashImage.pullPolicystring"IfNotPresent"Image pull policy for bash containers.
bashImage.repositorystring"cgr.dev/chainguard/bash"Image repository for bash containers.
bashImage.tagstring"latest"Image tag for bash containers, this will be omitted if set to -.
caCerts.enabledboolfalseIf true, add the CA certificates in the provided secret to the JVM cacerts key store.
caCerts.secretstringnilName of the secret containing the CA certificates.
chownDataDirbooltrueIf true, the chown-data-dir init container will be enabled, this should not be required for most CSI drivers but is left in for backwards compatibility. For new chart installs this should be set to false.
commonLabelsobject{}Labels to add to all chart resources.
config.anonymous.enabledboolfalseIf true, enable anonymous access.
config.anonymous.roleslist["nx-anonymous","nx-metrics"]Roles for anonymous access.
config.blobStoreslist[]Blob store configuration; based on the REST API (API reference docs require an existing Nexus installation and can be found at Administration under System → API).
config.cleanuplist[]Cleanup configuration.
config.createDefaultBlobStorebooltrueIf true, provision with default blob store configuration.
config.enabledboolfalseIf true & rootPassword.secret is set, enable the configuration Job.
config.job.affinityobject{}Affinity settings for scheduling the config job.
config.job.annotationsobject{}Annotations to apply to the config job.
config.job.image.digeststringnilOptional image digest for the config container.
config.job.image.pullPolicystring"IfNotPresent"Image pull policy for config container.
config.job.image.repositorystring"docker.io/alpine/k8s"Image repository for the config container.
config.job.image.tagstring"1.31.2"Image tag for config container, this will be omitted if set to -.
config.job.nodeSelectorobject{}Node labels to match for scheduling the config job.
config.job.podLabelsobject{}Labels to add to the config job pod.
config.job.podSecurityContextobject{"fsGroup":200,"runAsNonRoot":false,"seccompProfile":{"type":"RuntimeDefault"}}Security context for the pod.
config.job.resourcesobject{}Resources for the config container.
config.job.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532}Security context for the config container containers.
config.job.tolerationslist[]Node taints which will be tolerated for scheduling the config job.
config.job.ttlSecondsAfterFinishedint600The number of seconds to keep the config job after it's finished.
config.ldapobject{"authPassword":{"key":null,"secret":null},"authRealm":null,"authScheme":"simple","authUsername":null,"connectionRetryDelaySeconds":300,"connectionTimeoutSeconds":30,"enabled":false,"groupBaseDn":null,"groupIdAttribute":null,"groupMemberAttribute":null,"groupMemberFormat":null,"groupObjectClass":null,"groupSubtree":false,"groupType":"dynamic","host":null,"ldapGroupsAsRoles":false,"maxIncidentsCount":3,"name":null,"port":636,"protocol":"ldaps","searchBase":null,"useTrustStore":true,"userBaseDn":null,"userEmailAddressAttribute":"email","userIdAttribute":"sAMAccountName","userLdapFilter":null,"userMemberOfAttribute":"memberOf","userObjectClass":"user","userPasswordAttribute":null,"userRealNameAttribute":"cn","userSubtree":false}LDAP configuration; based on the REST API (API reference docs require an existing Nexus installation and can be found at Administration under System → API).
config.privilegeslist[]Privileges configuration; based on the REST API (API reference docs require an existing Nexus installation and can be found at Administration under System → API).
config.realms.enabledboolfalseIf true, enable realms.
config.realms.valueslist[]List of realms to configure; can be empty or contain any of NexusAuthenticatingRealm, LdapRealm, DockerToken, NpmToken, NuGetApiKey or rutauth-realm.
config.repoCredentials.enabledboolfalseDEPRECATED - If true, enable repository credentials. Use inline repo password instead.
config.repoCredentials.secretstringnilName of the secret containing the repository credentials.
config.reposlist[]Repository configuration; based on the REST API (API reference docs require an existing Nexus installation and can be found at Administration under System → API) but with format & type defined in the object.
config.roleslist[]Roles configuration; based on the REST API (API reference docs require an existing Nexus installation and can be found at Administration under System → API).
config.taskslist[]Task configuration.
config.userslist[]Users configuration; based on the REST API (API reference docs require an existing Nexus installation and can be found at Administration under System → API).
envlist[]Environment variables for the default container.
extraInitContainerslist[]Extra init container to run before the default container.
extraVolumeMountslist[]Extra volume mounts for the default container.
extraVolumeslist[]Extra volumes for the pod.
fullnameOverridestringnilOverride the full name of the chart.
httpRoute.annotationsobject{}Annotations to add to the HTTPRoute resources.
httpRoute.enabledboolfalseIf true, create HTTPRoute resources.
httpRoute.hostnameslistSee values.yamlHTTPRoute hostnames; do not include hosts defined in service.additionalPorts as they will be added automatically.
httpRoute.labelsobject{}Labels to add to the HTTPRoute resources.
httpRoute.parentRefslistSee values.yamlHTTPRoute parent references.
httpRoute.ruleslistSee values.yamlHTTPRoute rules for the primary hostname; if not set, a default rule routing all traffic to the HTTP service port will be created.
image.digeststringnilOptional image digest for the default container.
image.pullPolicystring"IfNotPresent"Image pull policy for the default container.
image.repositorystring"docker.io/sonatype/nexus3"Image repository for the default container.
image.tagstringnilImage tag for the default container, this will default to .Chart.AppVersion if not set and will be omitted if set to -.
imagePullSecretslist[]Image pull secrets.
ingress.annotationsobject{}Ingress annotations.
ingress.enabledboolfalseIf true, create an Ingress resource.
ingress.hostslistSee values.yamlIngress hosts, do not include hosts defined in service.additionalPorts.
ingress.ingressClassNamestringnilIngress class name.
ingress.tlslistSee values.yamlIngress TLS, hosts defined in both ingress.hosts & service.additionalPorts[*].hosts should be covered.
initNonRootSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532}Security context for non-root init containers.
initResourcesobject{}Resources for the init containers (not sidecars).
initRootSecurityContextobject{"allowPrivilegeEscalation":false,"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":0,"runAsNonRoot":false,"runAsUser":0}Security context for root init container.
install4jAddVmParamsstring"-Xms1024m -Xmx1024m -XX:MaxDirectMemorySize=2048m"Env configuration for the Nexus3 container.
jdkImage.digeststringnilOptional image digest for the JDK container.
jdkImage.pullPolicystring"IfNotPresent"Image pull policy for the JDK container.
jdkImage.repositorystring"docker.io/eclipse-temurin"Image repository for the JDK container.
jdkImage.tagstring"21-jdk"Image tag for the JDK container, this will be omitted if set to -.
license.enabledboolfalseIf true, use the license in the provided secret. This must be set to enable Pro features.
license.keystring"nexus.license"Key in the secret containing the license.
license.secretstringnilName of the secret containing the license.
livenessProbeobjectSee values.yamlLiveness probe configuration for the default container.
logback.maxHistoryint30Maximum history for log files.
manualMaintenanceMode.argslist["while true; do sleep 60; done"]The arguments to pass to the command in manual maintenance mode.
manualMaintenanceMode.commandlist["/bin/bash","-c"]The command to run in manual maintenance mode.
manualMaintenanceMode.enabledboolfalseIf true, enable manual maintenance mode. This is running the default container with a custom command, reducing the termination grace period to 10s and disabling the probes.
metrics.enabledboolfalseIf true, enable metrics.
metrics.serviceMonitor.additionalLabelsobject{}Additional labels for the ServiceMonitor.
metrics.serviceMonitor.enabledboolfalseIf true, create a ServiceMonitor resource to support the Prometheus Operator.
metrics.serviceMonitor.endpointConfigobject{}Additional endpoint configuration for the ServiceMonitor.
minReadySecondsintnilMin ready seconds for the StatefulSet.
nameOverridestringnilOverride the name of the chart.
nodeSelectorobject{}Node labels to match for pod scheduling.
ordinalsobject{}Ordinals configuration for the StatefulSet.
persistence.accessModestring"ReadWriteOnce"Access mode for the PersistentVolumeClaim.
persistence.annotationsobject{}Annotations for the PersistentVolumeClaim.
persistence.enabledboolfalseIf true, persistence should be enabled for the StatefulSet.
persistence.retainDeletedbooltrueIf true, keep PersistentVolumeClaims when the StatefulSet is deleted.
persistence.retainScaledbooltrueIf true, keep PersistentVolumeClaim when the StatefulSet is scaled down.
persistence.sizestring"8Gi"Size of the PersistentVolumeClaim.
persistence.storageClassstringnilStorage class for the PersistentVolumeClaim, if not set the default will be used.
pluginslist[]List of plugins to install.
podAnnotationsobject{}Annotations to add to the pod.
podDisruptionBudget.enabledboolfalseIf true, create a PodDisruptionBudget resource.
podDisruptionBudget.maxUnavailablestringnilMinimum number of unavailable pods, either a number or a percentage.
podDisruptionBudget.minAvailablestringnilMinimum number of available pods, either a number or a percentage.
podDisruptionBudget.unhealthyPodEvictionPolicystringnilUnhealthy pod eviction policy for the PDB.
podLabelsobj

Deploy nexus3 with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nexus3 on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnexus3 is pinned at v5.27.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply