docker-registry pod with ui
This commit is contained in:
43
docker-registry.pod.yaml
Normal file
43
docker-registry.pod.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: my-pod
|
||||
spec:
|
||||
containers:
|
||||
- name: registry
|
||||
image: docker.io/library/registry:2
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
hostPort: 5000
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/registry
|
||||
name: registry-data
|
||||
securityContext:
|
||||
privileged: true
|
||||
- name: registry-ui
|
||||
image: docker.io/joxit/docker-registry-ui:main
|
||||
ports:
|
||||
- containerPort: 80
|
||||
hostPort: 8082
|
||||
env:
|
||||
- name: DELETE_IMAGE
|
||||
value: "true"
|
||||
- name: NGINX_PROXY_PASS_URL
|
||||
value: http://cr.chaos
|
||||
- name: URL
|
||||
value: http://cr-ui.chaos
|
||||
- name: REGISTRY_TITLE
|
||||
value: CHAOS
|
||||
- name: SINGLE_REGISTRY
|
||||
value: "true"
|
||||
- name: SHOW_CONTENT_DIGEST
|
||||
value: "true"
|
||||
- name: SHOW_CATALOG_NB_TAGS
|
||||
value: "true"
|
||||
- name: REGISTRY_SECURED
|
||||
value: "false"
|
||||
volumes:
|
||||
- name: registry-data
|
||||
hostPath:
|
||||
path: /var/lib/registry
|
||||
restartPolicy: Always
|
||||
Reference in New Issue
Block a user