about summary refs log tree commit diff
path: root/bundles/gonic/files/kube.yaml
blob: 1eaeb5b5006288e7e31cdd0f6278ae1ebb962df9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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