Skip to content

Commit f074245

Browse files
committed
Add request handling
source: Ben's doc (kubernetes-sigs/oci-proxy/cmd/archeio/docs/request-handling.md)
1 parent 0e5fafb commit f074245

File tree

1 file changed

+15
-0
lines changed
  • keps/sig-release/3000-artifact-distribution

1 file changed

+15
-0
lines changed

keps/sig-release/3000-artifact-distribution/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,21 @@ Additionally we require a registry and artifact url-redirection solution to the
104104
- We will have CI jobs that will run against registry-sandbox.k8s.io as well to monitor stability before we promote code to registry
105105
- We will automate the deployment/monitoring and testing of code landing in the oci-proxy repository
106106

107+
### registry.k8s.io request handling
108+
109+
Requests to [registry.k8s.io](https://registry.k8s.io) follows the following flow:
110+
111+
1. If it's a request for `/`: redirect to our wiki page about the project
112+
2. If it's not a request for `/` and does not start with `/v2/`: 404 error
113+
3. For registry API requests, all of which start with `/v2/`:
114+
115+
- If it's not a blob request: redirect to _Upstream Registry_
116+
- If it's not a known AWS IP: redirect to _Upstream Registry_
117+
- If it's a known AWS IP AND HEAD request for the layer succeeeds in S3: redirect to S3
118+
- If it's a known AWS IP AND HEAD fails: redirect to _Upstream Registry_
119+
120+
Currently the _Upstream Registry_ is https://k8s.gcr.io.
121+
107122
### User Stories
108123

109124
#### SIG Release - Image Promotion

0 commit comments

Comments
 (0)