1
0
Fork 0

add actual

This commit is contained in:
Massaki Archambault 2023-12-25 19:25:48 -05:00
parent d2a252889c
commit 9758ae28e7
6 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,66 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: server
labels:
app.kubernetes.io/name: actual
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: actual
template:
metadata:
labels:
app.kubernetes.io/name: actual
spec:
containers:
- name: actual
image: actualbudget/actual-server
ports:
- name: http
containerPort: 5006
resources:
requests:
cpu: 250m
memory: 500Mi
limits:
cpu: 250m
memory: 500Mi
volumeMounts:
- name: actual-pv
mountPath: /data
volumes:
- name: actual-pv
persistentVolumeClaim:
claimName: server-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-pvc
labels:
app.kubernetes.io/name: actual
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: Service
metadata:
name: server
labels:
app.kubernetes.io/name: actual
monitor: prometheus
spec:
selector:
app.kubernetes.io/name: actual
ports:
- name: http
port: 5006
targetPort: http

View File

@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: server
labels:
app.kubernetes.io/name: actual
probe: blackbox-http
spec:
rules:
- host: ${ACTUAL_EXTERNAL_HOST}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: server
port:
name: http

View File

@ -0,0 +1,23 @@
resources:
- actual-deployment.yaml
- actual-ingress.yaml
namePrefix: actual-
configMapGenerator:
- name: kustomize-generated-config
literals:
- ACTUAL_EXTERNAL_HOST=actual.badjware.dev
- ACTUAL_EXTERNAL_URL=https://actual.badjware.dev
replacements:
- source:
kind: ConfigMap
name: kustomize-generated-config
fieldPath: data.ACTUAL_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: server
fieldPaths:
- spec.rules.0.host

View File

@ -10,6 +10,7 @@ resources:
- ../../overlays/home-assistant - ../../overlays/home-assistant
- ../../overlays/jellyfin - ../../overlays/jellyfin
- ../../overlays/deluge - ../../overlays/deluge
- ../../overlays/actual
- probes/snmp-exporter.yaml - probes/snmp-exporter.yaml
# resources: # resources:

View File

@ -0,0 +1,5 @@
resources:
- namespace.yaml
- ../../bases/actual
namespace: actual

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: actual