--- apiVersion: apps/v1 kind: Deployment metadata: name: dirlist namespace: media spec: replicas: 1 selector: matchLabels: app.kubernetes.io/created-by: tyil app.kubernetes.io/managed-by: manual app.kubernetes.io/name: dirlist app.kubernetes.io/part-of: media template: metadata: labels: app.kubernetes.io/created-by: tyil app.kubernetes.io/managed-by: manual app.kubernetes.io/name: dirlist app.kubernetes.io/part-of: media spec: containers: - name: miniserve image: docker.io/svenstaro/miniserve:latest args: - "--enable-tar-gz" - "--qrcode" - "--enable-tar" - "/var/www" ports: - containerPort: 8080 volumeMounts: - name: anime-movies mountPath: /var/www/anime-movies readOnly: true - name: anime-series mountPath: /var/www/anime-series readOnly: true - name: books mountPath: /var/www/books readOnly: true - name: movies mountPath: /var/www/movies readOnly: true - name: music mountPath: /var/www/music readOnly: true - name: series mountPath: /var/www/series readOnly: true volumes: - name: anime-movies hostPath: type: Directory path: /mnt/media/anime-movies/exported - name: anime-series hostPath: type: Directory path: /mnt/media/anime-series/exported - name: books hostPath: type: Directory path: /mnt/media/books/exported - name: movies hostPath: type: Directory path: /mnt/media/movies/exported - name: music hostPath: type: Directory path: /mnt/media/music/exported - name: series hostPath: type: Directory path: /mnt/media/series/exported ...