-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathconfig.yaml
28 lines (28 loc) · 1.06 KB
/
config.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
port: 9443
certDir: "./hack/certs"
healthAddr: ":8080"
metricsAddr: ":8081"
rules:
- name: 'docker.io rewrite rule'
# image refs must match at least one of the rules, and not match any excludes
matches:
- '^docker.io'
excludes:
# for example, exclude ubuntu from harbor's proxy cache
- '^docker.io/(library/)?ubuntu:.*$'
replace: 'harbor.example.com/dockerhub-proxy'
checkUpstream: false
- name: 'docker.io ubuntu rewrite rule'
# image refs must match at least one of the rules, and not match any excludes
matches:
- '^docker.io/(library/)?ubuntu:.*$'
replace: 'harbor-v2.awscmhqa2.k8s.indeed.tech/dockerhub-proxy-auth'
checkUpstream: true # tests if the manifest for the rewritten image exists
authSecretName: "harborv2-qa"
- name: 'docker.io rewrite rule with imagePullSecret change'
# image refs must match at least one of the rules, and not match any excludes
matches:
- '^docker.io'
replace: 'harbor.example.com/dockerhub-proxy'
authSecretName: "harborv2-qa"
replaceImagePullSecrets: true