apiVersion: v1 kind: Pod metadata: name: gonic labels: traefik.enable: true traefik.http.routers.gonic.tls: true traefik.http.routers.gonic.tls.certresolver: le traefik.http.routers.gonic.entrypoints: http,https traefik.http.routers.gonic.rule: Host(`music.gzr.im`) traefik.http.routers.gonic.service: gonic traefik.http.services.gonic.loadbalancer.server.port: 80 spec: dnsPolicy: Default containers: - name: gonic image: docker.io/sentriz/gonic:${version} env: - name: GONIC_EXCLUDE_PATTERN value: '.*\/inbox\/.*' - name: GONIC_SCAN_INTERVAL value: 1440 - name: GONIC_SCAN_AT_START_ENABLED value: 1 volumeMounts: - name: data mountPath: /data - name: cache mountPath: /cache - name: podcasts mountPath: /podcasts - name: playlists mountPath: /playlists - name: media mountPath: /music readOnly: true ports: - containerPort: 80 protocol: TCP #livenessProbe: # exec: # command: ["/healthcheck.sh"] #resources: # limits: # cpu: 100m # memory: 128Mi volumes: - name: data hostPath: path: /var/lib/gonic/data type: DirectoryOrCreate - name: cache hostPath: path: /var/lib/gonic/cache type: DirectoryOrCreate - name: podcasts hostPath: path: /var/lib/gonic/podcasts type: DirectoryOrCreate - name: playlists hostPath: path: /var/lib/gonic/playlists type: DirectoryOrCreate - name: media hostPath: path: /media/hayasui/media/music type: Directory