add doc about running in k8s

This commit is contained in:
Yevhen Gurinovich 2020-04-10 10:46:36 +03:00
parent c022edba0f
commit 182ee06a78
2 changed files with 54 additions and 0 deletions

View File

@ -47,6 +47,20 @@ To run with a custom TZ:
-e TZ=America/Los_Angeles
### Run UI in K8S
For first fill config.yml with your values and create secret:
kubectl create secret generic docker-registry-ui-conf --from-file=config.yml=./config.yml
Then deploy app:
kubectl apply -f k8s-docker-registry-ui.yaml
After it you can access to UI via port forwarding:
kubectl port-forward svc/docker-registry-ui 8000
## Configure event listener on Docker Registry
To receive events you need to configure Registry as follow:

View File

@ -0,0 +1,40 @@
apiVersion: v1
kind: Service
metadata:
name: docker-registry-ui
spec:
ports:
- port: 8000
targetPort: 8000
selector:
app: docker-registry-ui
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: docker-registry-ui
spec:
selector:
matchLabels:
app: docker-registry-ui
replicas: 1
template:
metadata:
labels:
app: docker-registry-ui
spec:
containers:
- name: docker-registry-ui
image: quiq/docker-registry-ui:latest
command: ['/opt/docker-registry-ui']
args: ['-config-file=/opt/conf/config.yml']
ports:
- containerPort: 8000
volumeMounts:
- name: docker-registry-ui-conf
mountPath: /opt/conf
readOnly: true
volumes:
- name: docker-registry-ui-conf
secret:
secretName: docker-registry-ui-conf