-
Notifications
You must be signed in to change notification settings - Fork 0
/
nexus-minikubestack.yaml
63 lines (61 loc) · 1.11 KB
/
nexus-minikubestack.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
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nexus-pvc-claim
namespace: operations
labels:
app: halyard-storage-claim
spec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nexus
namespace: operations
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
name: nexus
template:
metadata:
labels:
name: nexus
spec:
securityContext:
fsGroup: 200
containers:
- name: nexus
imagePullPolicy: IfNotPresent
image: sonatype/nexus3:latest
volumeMounts:
- name: naxus-pvc-storage
mountPath: /nexus-data
volumes:
- name: naxus-pvc-storage
persistentVolumeClaim:
claimName: nexus-pvc-claim
---
apiVersion: v1
kind: Service
metadata:
name: nexus
namespace: operations
spec:
ports:
- name: ui
port: 8081
targetPort: 8081
- name: port9001
port: 9001
targetPort: 9001
selector:
name: nexus