initial
This commit is contained in:
43
install.yml
Normal file
43
install.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user