-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistry.yml
63 lines (63 loc) · 1.3 KB
/
registry.yml
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: registry
name: registry
namespace: registry
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: registry
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: registry
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: In
values:
- "true"
containers:
- image: registry:2.8.2
name: registry
ports:
- containerPort: 5000
resources: {}
volumeMounts:
- mountPath: /var/lib/registry
name: registry-volume
restartPolicy: Always
volumes:
- name: registry-volume
hostPath:
path: /data/registry
type: Directory
---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: registry
name: registry
namespace: registry
spec:
ports:
- name: "5000"
port: 5000
targetPort: 5000
nodePort: 25000
type: NodePort
selector:
io.kompose.service: registry
status:
loadBalancer: {}