mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-07-17 15:51:27 +00:00
add doc about running in k8s
This commit is contained in:
parent
c022edba0f
commit
182ee06a78
14
README.md
14
README.md
@ -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:
|
||||
|
40
k8s-docker-registry-ui.yaml
Normal file
40
k8s-docker-registry-ui.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user