-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathregistry-rc.yaml
More file actions
36 lines (36 loc) · 901 Bytes
/
Copy pathregistry-rc.yaml
File metadata and controls
36 lines (36 loc) · 901 Bytes
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
apiVersion: v1
kind: ReplicationController
metadata:
name: registry
spec:
replicas: 1
selector:
name: registry
template:
metadata:
labels:
name: registry
spec:
containers:
- name: registry
image: registry:2
env:
- name: REGISTRY_STORAGE_DELETE_ENABLED
value: "true"
- name: REGISTRY_LOG_LEVEL
value: info
- name: REGISTRY_STORAGE
value: filesystem
ports:
- containerPort: 5000
volumeMounts:
- name: registry-storage
mountPath: /var/lib/registry
- name: registry-creds
mountPath: /var/run/secrets/deis/registry/creds
volumes:
- name: registry-storage
emptyDir: {}
- name: registry-creds
secret:
secretName: fs-keyfile