all repos — infra @ 5fe6100c7c0d9b65eb2bfaf84cb2ff898979d35b

infrastructure manifests and setup notes

apps/lms/lms.yaml (view raw)

 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
 68
 69
 70
 71
apiVersion: apps/v1
kind: Deployment
metadata:
  name: lms
  labels:
    app: lms
spec:
  selector:
    matchLabels:
      app: lms
  template:
    metadata:
      labels:
        app: lms
    spec:
      nodeSelector:
        kubernetes.io/hostname: "jade"
      imagePullSecrets:
        - name: registry-creds
      securityContext:
        fsGroup: 100
      containers:
        - name: lms
          image: epoupon/lms
          imagePullPolicy: IfNotPresent
          volumeMounts:
            - name: music
              mountPath: "/music"
              readOnly: false
            - name: config
              mountPath: "/config"
              readOnly: false
            - name: lms-persist
              mountPath: "/var/lms"
              readOnly: false
            - name: lms-ui
              mountPath: "/etc/lms/docroot"
              readOnly: false
          command: ["/usr/bin/lms", "/config/lms.conf"]
          ports:
            - name: http
              containerPort: 5082
      volumes:
        - name: music
          hostPath:
            path: /mnt/music
            type: Directory
        - name: lms-ui
          persistentVolumeClaim:
            claimName: lms-ui
        - name: lms-persist
          persistentVolumeClaim:
            claimName: lms-persist
        - name: config
          configMap:
            name: lms-config
            items:
              - key: "lms.conf"
                path: "lms.conf"
---
apiVersion: v1
kind: Service
metadata:
  name: lms
spec:
  selector:
    app: lms
  ports:
    - name: http
      port: 5082
      targetPort: 5082