-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathnexus.yaml
109 lines (109 loc) · 2.03 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nexus
app.kubernetes.io/instance: nexus
app.kubernetes.io/name: nexus
app.kubernetes.io/part-of: nexus
name: nexus
spec:
replicas: 1
selector:
matchLabels:
app: nexus
template:
metadata:
labels:
app: nexus
spec:
containers:
- name: nexus
image: quay.io/siamaksade/nexus3:3.16.2
env:
- name: CONTEXT_PATH
value: /
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8081
protocol: TCP
livenessProbe:
exec:
command:
- echo
- ok
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 8081
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 4Gi
cpu: 2
requests:
memory: 512Mi
cpu: 200m
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /nexus-data
name: nexus-data
volumes:
- name: nexus-data
persistentVolumeClaim:
claimName: nexus-pv
---
apiVersion: v1
kind: Service
metadata:
labels:
app: nexus
name: nexus
spec:
ports:
- name: 8081-tcp
port: 8081
protocol: TCP
targetPort: 8081
selector:
app: nexus
sessionAffinity: None
type: ClusterIP
---
apiVersion: v1
kind: Route
metadata:
labels:
app: nexus
name: nexus
spec:
port:
targetPort: 8081-tcp
to:
kind: Service
name: nexus
weight: 100
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: nexus
name: nexus-pv
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi