This commit is contained in:
2025-11-21 13:00:07 +01:00
commit 423d45903e

43
install.yml Normal file
View File

@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dockerhub-cache
namespace: gitea
spec:
replicas: 1
selector:
matchLabels:
app: dockerhub-cache
template:
metadata:
labels:
app: dockerhub-cache
spec:
containers:
- name: registry
image: registry:2
env:
- name: REGISTRY_PROXY_REMOTEURL
value: https://registry-1.docker.io
ports:
- containerPort: 5000
volumeMounts:
- name: cache
mountPath: /var/lib/registry
volumes:
- name: cache
emptyDir: {} # kannst auch persistent volume nehmen
---
apiVersion: v1
kind: Service
metadata:
name: dockerhub-cache
namespace: woodpecker
spec:
selector:
app: dockerhub-cache
ports:
- name: http
port: 5000
targetPort: 5000