Skip to content

Commit 0c65769

Browse files
committed
feat(cache): cache and delete images
1 parent b545a66 commit 0c65769

File tree

4 files changed

+253
-5
lines changed

4 files changed

+253
-5
lines changed

deploy/registry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
ports:
2121
- containerPort: 5000
2222
protocol: TCP
23+
env:
24+
- name: REGISTRY_STORAGE_DELETE_ENABLED
25+
value: "true"
2326
---
2427
apiVersion: v1
2528
kind: Service
@@ -40,6 +43,7 @@ metadata:
4043
annotations:
4144
kubernetes.io/ingress.class: nginx
4245
cert-manager.io/cluster-issuer: letsencrypt
46+
nginx.ingress.kubernetes.io/proxy-body-size: "0"
4347
spec:
4448
rules:
4549
- host: 185.145.250.158.nip.io

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module gitlab.enix.io/products/docker-cache-registry
33
go 1.15
44

55
require (
6+
github.com/google/go-containerregistry v0.5.1
67
k8s.io/api v0.20.1
78
k8s.io/apimachinery v0.20.1
89
k8s.io/client-go v0.20.1

0 commit comments

Comments
 (0)