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
| Name | Url | |
|---|---|---|
| stevehipwell | [email protected] |
Source Code
- https://github.com/sonatype/nexus-public
- https://github.com/sonatype/docker-nexus3
- https://github.com/stevehipwell/helm-charts/
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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | 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. |
| automountServiceAccountToken | bool | nil | If the service account token should be mounted to the pod, this overrides serviceAccount.automountToken. |
| bashImage.digest | string | nil | Optional image digest for the bash containers. |
| bashImage.pullPolicy | string | "IfNotPresent" | Image pull policy for bash containers. |
| bashImage.repository | string | "cgr.dev/chainguard/bash" | Image repository for bash containers. |
| bashImage.tag | string | "latest" | Image tag for bash containers, this will be omitted if set to -. |
| caCerts.enabled | bool | false | If true, add the CA certificates in the provided secret to the JVM cacerts key store. |
| caCerts.secret | string | nil | Name of the secret containing the CA certificates. |
| chownDataDir | bool | true | If 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. |
| commonLabels | object | {} | Labels to add to all chart resources. |
| config.anonymous.enabled | bool | false | If true, enable anonymous access. |
| config.anonymous.roles | list | ["nx-anonymous","nx-metrics"] | Roles for anonymous access. |
| config.blobStores | list | [] | 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.cleanup | list | [] | Cleanup configuration. |
| config.createDefaultBlobStore | bool | true | If true, provision with default blob store configuration. |
| config.enabled | bool | false | If true & rootPassword.secret is set, enable the configuration Job. |
| config.job.affinity | object | {} | Affinity settings for scheduling the config job. |
| config.job.annotations | object | {} | Annotations to apply to the config job. |
| config.job.image.digest | string | nil | Optional image digest for the config container. |
| config.job.image.pullPolicy | string | "IfNotPresent" | Image pull policy for config container. |
| config.job.image.repository | string | "docker.io/alpine/k8s" | Image repository for the config container. |
| config.job.image.tag | string | "1.31.2" | Image tag for config container, this will be omitted if set to -. |
| config.job.nodeSelector | object | {} | Node labels to match for scheduling the config job. |
| config.job.podLabels | object | {} | Labels to add to the config job pod. |
| config.job.podSecurityContext | object | {"fsGroup":200,"runAsNonRoot":false,"seccompProfile":{"type":"RuntimeDefault"}} | Security context for the pod. |
| config.job.resources | object | {} | Resources for the config container. |
| config.job.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532} | Security context for the config container containers. |
| config.job.tolerations | list | [] | Node taints which will be tolerated for scheduling the config job. |
| config.job.ttlSecondsAfterFinished | int | 600 | The number of seconds to keep the config job after it's finished. |
| config.ldap | object | {"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.privileges | list | [] | 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.enabled | bool | false | If true, enable realms. |
| config.realms.values | list | [] | List of realms to configure; can be empty or contain any of NexusAuthenticatingRealm, LdapRealm, DockerToken, NpmToken, NuGetApiKey or rutauth-realm. |
| config.repoCredentials.enabled | bool | false | DEPRECATED - If true, enable repository credentials. Use inline repo password instead. |
| config.repoCredentials.secret | string | nil | Name of the secret containing the repository credentials. |
| config.repos | list | [] | 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.roles | list | [] | 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.tasks | list | [] | Task configuration. |
| config.users | list | [] | Users configuration; based on the REST API (API reference docs require an existing Nexus installation and can be found at Administration under System → API). |
| env | list | [] | Environment variables for the default container. |
| extraInitContainers | list | [] | Extra init container to run before the default container. |
| extraVolumeMounts | list | [] | Extra volume mounts for the default container. |
| extraVolumes | list | [] | Extra volumes for the pod. |
| fullnameOverride | string | nil | Override the full name of the chart. |
| httpRoute.annotations | object | {} | Annotations to add to the HTTPRoute resources. |
| httpRoute.enabled | bool | false | If true, create HTTPRoute resources. |
| httpRoute.hostnames | list | See values.yaml | HTTPRoute hostnames; do not include hosts defined in service.additionalPorts as they will be added automatically. |
| httpRoute.labels | object | {} | Labels to add to the HTTPRoute resources. |
| httpRoute.parentRefs | list | See values.yaml | HTTPRoute parent references. |
| httpRoute.rules | list | See values.yaml | HTTPRoute rules for the primary hostname; if not set, a default rule routing all traffic to the HTTP service port will be created. |
| image.digest | string | nil | Optional image digest for the default container. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy for the default container. |
| image.repository | string | "docker.io/sonatype/nexus3" | Image repository for the default container. |
| image.tag | string | nil | Image tag for the default container, this will default to .Chart.AppVersion if not set and will be omitted if set to -. |
| imagePullSecrets | list | [] | Image pull secrets. |
| ingress.annotations | object | {} | Ingress annotations. |
| ingress.enabled | bool | false | If true, create an Ingress resource. |
| ingress.hosts | list | See values.yaml | Ingress hosts, do not include hosts defined in service.additionalPorts. |
| ingress.ingressClassName | string | nil | Ingress class name. |
| ingress.tls | list | See values.yaml | Ingress TLS, hosts defined in both ingress.hosts & service.additionalPorts[*].hosts should be covered. |
| initNonRootSecurityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532} | Security context for non-root init containers. |
| initResources | object | {} | Resources for the init containers (not sidecars). |
| initRootSecurityContext | object | {"allowPrivilegeEscalation":false,"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":0,"runAsNonRoot":false,"runAsUser":0} | Security context for root init container. |
| install4jAddVmParams | string | "-Xms1024m -Xmx1024m -XX:MaxDirectMemorySize=2048m" | Env configuration for the Nexus3 container. |
| jdkImage.digest | string | nil | Optional image digest for the JDK container. |
| jdkImage.pullPolicy | string | "IfNotPresent" | Image pull policy for the JDK container. |
| jdkImage.repository | string | "docker.io/eclipse-temurin" | Image repository for the JDK container. |
| jdkImage.tag | string | "21-jdk" | Image tag for the JDK container, this will be omitted if set to -. |
| license.enabled | bool | false | If true, use the license in the provided secret. This must be set to enable Pro features. |
| license.key | string | "nexus.license" | Key in the secret containing the license. |
| license.secret | string | nil | Name of the secret containing the license. |
| livenessProbe | object | See values.yaml | Liveness probe configuration for the default container. |
| logback.maxHistory | int | 30 | Maximum history for log files. |
| manualMaintenanceMode.args | list | ["while true; do sleep 60; done"] | The arguments to pass to the command in manual maintenance mode. |
| manualMaintenanceMode.command | list | ["/bin/bash","-c"] | The command to run in manual maintenance mode. |
| manualMaintenanceMode.enabled | bool | false | If 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.enabled | bool | false | If true, enable metrics. |
| metrics.serviceMonitor.additionalLabels | object | {} | Additional labels for the ServiceMonitor. |
| metrics.serviceMonitor.enabled | bool | false | If true, create a ServiceMonitor resource to support the Prometheus Operator. |
| metrics.serviceMonitor.endpointConfig | object | {} | Additional endpoint configuration for the ServiceMonitor. |
| minReadySeconds | int | nil | Min ready seconds for the StatefulSet. |
| nameOverride | string | nil | Override the name of the chart. |
| nodeSelector | object | {} | Node labels to match for pod scheduling. |
| ordinals | object | {} | Ordinals configuration for the StatefulSet. |
| persistence.accessMode | string | "ReadWriteOnce" | Access mode for the PersistentVolumeClaim. |
| persistence.annotations | object | {} | Annotations for the PersistentVolumeClaim. |
| persistence.enabled | bool | false | If true, persistence should be enabled for the StatefulSet. |
| persistence.retainDeleted | bool | true | If true, keep PersistentVolumeClaims when the StatefulSet is deleted. |
| persistence.retainScaled | bool | true | If true, keep PersistentVolumeClaim when the StatefulSet is scaled down. |
| persistence.size | string | "8Gi" | Size of the PersistentVolumeClaim. |
| persistence.storageClass | string | nil | Storage class for the PersistentVolumeClaim, if not set the default will be used. |
| plugins | list | [] | List of plugins to install. |
| podAnnotations | object | {} | Annotations to add to the pod. |
| podDisruptionBudget.enabled | bool | false | If true, create a PodDisruptionBudget resource. |
| podDisruptionBudget.maxUnavailable | string | nil | Minimum number of unavailable pods, either a number or a percentage. |
| podDisruptionBudget.minAvailable | string | nil | Minimum number of available pods, either a number or a percentage. |
| podDisruptionBudget.unhealthyPodEvictionPolicy | string | nil | Unhealthy pod eviction policy for the PDB. |
| podLabels | obj |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnexus3 is pinned at v5.27.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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