forked from solo-io/wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistry.yaml
102 lines (102 loc) · 2.06 KB
/
registry.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
---
apiVersion: v1
kind: Namespace
metadata:
name: kube-registry
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-registry
namespace: kube-registry
labels:
app: kube-registry
spec:
replicas: 1
selector:
matchLabels:
app: kube-registry
version: v0
template:
metadata:
labels:
app: kube-registry
version: v0
spec:
containers:
- name: registry
image: registry:2.7.1
resources:
# keep request = limit to keep this container in guaranteed class
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 500m
memory: 500Mi
env:
- name: REGISTRY_HTTP_ADDR
value: :5000
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
value: /var/lib/registry
volumeMounts:
- name: image-store
mountPath: /var/lib/registry
ports:
- containerPort: 5000
name: registry
protocol: TCP
volumes:
- name: image-store
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: kube-registry
namespace: kube-registry
labels:
app: kube-registry
spec:
selector:
app: kube-registry
ports:
- name: registry
port: 5000
protocol: TCP
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: kube-registry-proxy
namespace: kube-registry
labels:
app: kube-registry
version: v0.4
spec:
selector:
matchLabels:
app: kube-registry
version: v0.4
template:
metadata:
labels:
app: kube-registry
version: v0.4
spec:
containers:
- name: kube-registry-proxy
image: gcr.io/google_containers/kube-registry-proxy:0.4
resources:
limits:
cpu: 100m
memory: 50Mi
env:
- name: REGISTRY_HOST
value: kube-registry.kube-registry.svc.cluster.local
- name: REGISTRY_PORT
value: "5000"
ports:
- name: registry
containerPort: 80
hostPort: 5000