all repos — infra @ 82be1cf6c554fe1566434b072658defc064ae5a0

infrastructure manifests and setup notes

apps/yarr/yarr.yaml (view raw)

 1apiVersion: apps/v1
 2kind: Deployment
 3metadata:
 4  name: yarr
 5  labels:
 6    app: yarr
 7spec:
 8  selector:
 9    matchLabels:
10      app: yarr
11  template:
12    metadata:
13      labels:
14        app: yarr
15    spec:
16      imagePullSecrets:
17        - name: registry-creds
18      nodeSelector:
19        arch: "arm"
20      containers:
21        - name: yarr
22          image: reg.icyphox.sh/yarr
23          imagePullPolicy: Always
24          volumeMounts:
25            - name: auth
26              mountPath: "/config"
27              readOnly: true
28          ports:
29            - name: http
30              containerPort: 7070
31          command: ["/bin/sh"]
32          args:
33            - -c
34            - /usr/local/bin/yarr -auth-file /config/auth -addr 0.0.0.0:7070
35      volumes:
36        - name: auth
37          secret:
38            secretName: yarr-auth
39---
40apiVersion: v1
41kind: Service
42metadata:
43  name: yarr
44spec:
45  selector:
46    app: yarr
47  ports:
48    - name: http
49      port: 7070
50      targetPort: 7070