release.yaml (2143B)
1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: actualbudget-server 5 namespace: actualbudget-server 6 spec: 7 replicas: 1 8 selector: 9 matchLabels: 10 app: actualbudget-server 11 template: 12 metadata: 13 labels: 14 app: actualbudget-server 15 spec: 16 containers: 17 - name: actualbudget-server 18 image: ghcr.io/actualbudget/actual:26.4.0 19 imagePullPolicy: IfNotPresent 20 resources: 21 limits: 22 cpu: 100m 23 memory: 128Mi 24 requests: 25 cpu: 100m 26 memory: 128Mi 27 env: 28 - name: NODE_ENV 29 value: "production" 30 # - name: DEBUG 31 # value: "*" 32 ports: 33 - containerPort: 5006 34 livenessProbe: 35 httpGet: 36 path: / 37 port: 5006 38 initialDelaySeconds: 30 39 periodSeconds: 10 40 timeoutSeconds: 5 41 successThreshold: 1 42 failureThreshold: 3 43 readinessProbe: 44 httpGet: 45 path: / 46 port: 5006 47 initialDelaySeconds: 30 48 periodSeconds: 10 49 timeoutSeconds: 5 50 successThreshold: 1 51 failureThreshold: 3 52 volumeMounts: 53 - name: actualbudget-server 54 mountPath: /data 55 volumes: 56 - name: actualbudget-server 57 persistentVolumeClaim: 58 claimName: actualbudget-server 59 --- 60 apiVersion: v1 61 kind: Service 62 metadata: 63 name: actualbudget-server-service 64 namespace: actualbudget-server 65 spec: 66 selector: 67 app: actualbudget-server 68 ports: 69 - protocol: TCP 70 port: 5006 71 targetPort: 5006 72 --- 73 apiVersion: gateway.networking.k8s.io/v1 74 kind: HTTPRoute 75 metadata: 76 name: actualbudget-server 77 namespace: actualbudget-server 78 spec: 79 parentRefs: 80 - name: envoy-gateway 81 namespace: envoy-gateway 82 hostnames: 83 - budget.midnightthoughts.space 84 rules: 85 - backendRefs: 86 - name: actualbudget-server-service 87 port: 5006 88 timeouts: 89 request: 240s 90 backendRequest: 0s