apiVersion: v1
kind: Pod
metadata:
  name: my-registry
  labels:
    name: my-registry
spec:
  containers:
  - name: registry
    image: registry:2
    ports:
    - containerPort: 5000
    volumeMounts:
    - name: images
      mountPath: /var/lib/registry
    - name: certs
      mountPath: /certs
    - name: config
      mountPath: /etc/docker/registry/config.yml
    - name: auth
      mountPath: /auth/htpasswd
  # These containers are run during pod initialization
  dnsPolicy: Default
  volumes:
    - name: images
      hostPath: 
        path: /home/asw/data/my-registry
    - name: certs
      hostPath:
        path: /home/vagrant/.docker/registry
    - name: config
      hostPath:
        path: /home/asw/_shared/resources/registry-config.yml
    - name: auth
      hostPath:
        path: /home/asw/_shared/resources/htpasswd