Skip to content

Instantly share code, notes, and snippets.

@HokieGeek
Created February 15, 2019 21:21
Show Gist options
  • Save HokieGeek/32882bb98b1d0094b0fce017c1e1f5fa to your computer and use it in GitHub Desktop.
Save HokieGeek/32882bb98b1d0094b0fce017c1e1f5fa to your computer and use it in GitHub Desktop.
Kubernetes configs for Sonatype Nexus
apiVersion: v1
kind: Service
metadata:
name: nexus-iq
labels:
app: nexus-iq
spec:
ports:
- port: 8070
targetPort: 8070
name: nexus-iq-server
- port: 8071
targetPort: 8071
name: nexus-iq-admin
selector:
app: nexus-iq
type: LoadBalancer
---
apiVersion: v1
kind: ReplicationController
metadata:
name: nexus-iq
spec:
replicas: 1
selector:
app: nexus-iq
template:
metadata:
labels:
app: nexus-iq
spec:
containers:
- name: nexus-iq
image: sonatype/nexus-iq-server:1.60.0
ports:
- containerPort: 8070
name: nexus-iq-server
- containerPort: 8071
name: nexus-iq-admin
apiVersion: v1
kind: Service
metadata:
name: nexus-repository
labels:
app: nexus-repository
spec:
ports:
- port: 8081
targetPort: 8081
name: nexus-repository
selector:
app: nexus-repository
type: LoadBalancer
---
apiVersion: v1
kind: ReplicationController
metadata:
name: nexus-repository
spec:
replicas: 1
selector:
app: nexus-repository
template:
metadata:
labels:
app: nexus-repository
spec:
containers:
- name: nexus-repository
image: sonatype/nexus3:3.15.0
ports:
- containerPort: 8081
name: nexus-repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment