diff --git a/docker-registry.pod.yaml b/docker-registry.pod.yaml new file mode 100644 index 0000000..802bdc7 --- /dev/null +++ b/docker-registry.pod.yaml @@ -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