forked from microsoft/pai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-cache.yaml.template
More file actions
40 lines (39 loc) · 1021 Bytes
/
docker-cache.yaml.template
File metadata and controls
40 lines (39 loc) · 1021 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
37
38
39
40
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
apiVersion: apps/v1
kind: Deployment
metadata:
name: docker-registry-cache
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: docker-registry-cache
template:
metadata:
labels:
app: docker-registry-cache
spec:
containers:
- name: docker-registry-cache
image: registry:2
imagePullPolicy: IfNotPresent
volumeMounts:
- name: registry-htpasswd
mountPath: /auth/
readOnly: True
- name: registry-config
mountPath: /etc/docker/registry/
readOnly: True
ports:
- name: http
containerPort: {{ cluster_cfg["docker-cache"]["container_port"] }}
volumes:
- name: registry-htpasswd
secret:
secretName: registry-htpasswd
defaultMode: 0400
- name: registry-config
configMap:
name: registry-config