66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
|
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
|