-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnexus.yaml
72 lines (70 loc) · 1.51 KB
/
nexus.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
kind: List
apiVersion: v1
items:
- kind: DeploymentConfig
apiVersion: v1
metadata:
name: nexus-dc
spec:
replicas: 1
selector:
name: nexus-pod
strategy:
resources: {}
type: Rolling
template:
metadata:
creationTimestamp: null
labels:
name: nexus-pod
spec:
volumes:
- name: pvol
persistantVolumeClaim:
claimName: nexus-claim
containers:
- capabilities: {}
image: sonatype/nexus
imagePullPolicy: IfNotPresent
livenessProbe:
initialDelaySeconds: 180
tcpSocket:
port: 8081
timeoutSeconds: 1
name: nexus-pod
ports:
- containerPort: 8081
name: nexus-http-8081
protocol: TCP
securityContext:
capabilities: {}
privileged: false
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /sonatype-work
name: pvol
dnsPolicy: ClusterFirst
nodeSelector:
region: infra
restartPolicy: Always
serviceAccount: ''
triggers:
- type: ConfigChange
- kind: Service
apiVersion: v1
metadata:
name: nexus-service
spec:
ports:
- port: 8081
selector:
name: nexus-pod
- kind: Route
apiVersion: v1
metadata:
name: nexus-route
spec:
host: nexus.cloudapps.example.com
to:
kind: Service
name: nexus-service