all repos — infra @ 82be1cf6c554fe1566434b072658defc064ae5a0

infrastructure manifests and setup notes

apps/lms/lms.yaml (view raw)

 1apiVersion: apps/v1
 2kind: Deployment
 3metadata:
 4  name: lms
 5  labels:
 6    app: lms
 7spec:
 8  selector:
 9    matchLabels:
10      app: lms
11  template:
12    metadata:
13      labels:
14        app: lms
15    spec:
16      nodeSelector:
17        kubernetes.io/hostname: "jade"
18      imagePullSecrets:
19        - name: registry-creds
20      securityContext:
21        fsGroup: 100
22      containers:
23        - name: lms
24          image: epoupon/lms
25          imagePullPolicy: IfNotPresent
26          volumeMounts:
27            - name: music
28              mountPath: "/music"
29              readOnly: false
30            - name: config
31              mountPath: "/config"
32              readOnly: false
33            - name: lms-persist
34              mountPath: "/var/lms"
35              readOnly: false
36            - name: lms-ui
37              mountPath: "/etc/lms/docroot"
38              readOnly: false
39          command: ["/usr/bin/lms", "/config/lms.conf"]
40          ports:
41            - name: http
42              containerPort: 5082
43      volumes:
44        - name: music
45          hostPath:
46            path: /mnt/music
47            type: Directory
48        - name: lms-ui
49          persistentVolumeClaim:
50            claimName: lms-ui
51        - name: lms-persist
52          persistentVolumeClaim:
53            claimName: lms-persist
54        - name: config
55          configMap:
56            name: lms-config
57            items:
58              - key: "lms.conf"
59                path: "lms.conf"
60---
61apiVersion: v1
62kind: Service
63metadata:
64  name: lms
65spec:
66  selector:
67    app: lms
68  ports:
69    - name: http
70      port: 5082
71      targetPort: 5082