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 30 31
| helm upgrade --install sonatype-nexus apphub/sonatype-nexus -n middleware \ --set ingress.tls.enabled=false \ --set persistence.storageClass=sc-nfs \ --set nexusProxy.enabled=false
cat << EOF > svc-nexus.yaml apiVersion: v1 kind: Service metadata: name: sonatype-nexus namespace: middleware labels: app: sonatype-nexus spec: type: NodePort ports: - port: 8081 name: http1 targetPort: 8081 nodePort: 31001 - port: 8082 name: http2 targetPort: 8082 nodePort: 31002 selector: app: sonatype-nexus EOF
kubectl apply -f svc-nexus.yaml rm -f svc-nexus.yaml
|