refactored, docker-reg uses csi-s3 as pv

This commit is contained in:
2020-07-30 18:30:02 +02:00
parent 5ff76fc1e9
commit 6fde553ed3
7 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,85 @@
#https://github.com/Joxit/docker-registry-ui
apiVersion: apps/v1
kind: Deployment
metadata:
name: docker-registry-ui
namespace: docker-registry
labels:
app: registry-ui
release: docker-registry-ui
app/version: "1.2.1"
spec:
replicas: 1
selector:
matchLabels:
app: registry-ui
release: docker-registry-ui
template:
metadata:
labels:
app: registry-ui
release: docker-registry-ui
spec:
containers:
- name: registry-ui
image: "docker-registry.lan/docker-registry-ui:arm64"
imagePullPolicy: Always
env:
- name: URL
value: "http://docker-registry.lan"
- name: REGISTRY_TITLE
value: "Docker registry UI"
- name: DELETE_IMAGES
value: "false"
- name: REGISTRY_URL
value: "http://docker-registry-ui.lan"
- name: PULL_URL
value: "http://docker-registry.lan"
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{}
---
apiVersion: v1
kind: Service
metadata:
namespace: docker-registry
name: docker-registry-ui
labels:
app: registry-ui
release: docker-registry-ui
app/version: "1.2.1"
spec:
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app: registry-ui
release: docker-registry-ui
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: docker-registry-ui
namespace: docker-registry
spec:
rules:
- host: docker-registry-ui.lan
http:
paths:
- backend:
serviceName: docker-registry-ui
servicePort: http
path: /