openshift-nexus3
Helm chartv0.1.1App 1.0
A Helm chart for Nexus3 on Openshift
About this chart
Setting up Nexus manually with openshift cli
- Download and deploy the official Nexus3 container image:
oc new-app sonatype/nexus3
- Create a route by exposing the newly created Nexus3 service:
oc expose svc/nexus3
- Using Probes to Check for Success
oc set probe dc/nexus3 \
--liveness \
--failure-threshold 3 \
--initial-delay-seconds 30 \
-- echo ok
oc set probe dc/nexus3 \
--readiness \
--failure-threshold 3 \
--initial-delay-seconds 30 \
--get-url=http://:8081
4. Adding Persistence to Nexus3
oc volumes dc/nexus3 --add \
--name 'nexus3-volume-1' \
--type 'pvc' \
--mount-path '/nexus-data/' \
--claim-name 'nexus3-pv' \
--claim-size '50G' \
--overwrite
Deploy openshift-nexus3 with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openshift-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 chartopenshift-nexus3 is pinned at v0.1.1 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