Add finance to auto deploy
This commit is contained in:
parent
3699b79f1a
commit
5792367b8b
@ -1,12 +1,10 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: finance
|
|
||||||
name: actualbudget
|
name: actualbudget
|
||||||
labels:
|
labels:
|
||||||
app: actualbudget
|
app: actualbudget
|
||||||
spec:
|
spec:
|
||||||
# deployment running a single container
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: actualbudget
|
app: actualbudget
|
||||||
@ -18,7 +16,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: actualbudget
|
- name: actualbudget
|
||||||
image: actualbudget/actual-server:latest
|
image: actualbudget
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
@ -34,67 +32,3 @@ spec:
|
|||||||
- name: actualbudget-data-nfs
|
- name: actualbudget-data-nfs
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: actualbudget-data-nfs
|
claimName: actualbudget-data-nfs
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
namespace: finance
|
|
||||||
name: "actualbudget-data-nfs"
|
|
||||||
spec:
|
|
||||||
# storageClassName: fast
|
|
||||||
capacity:
|
|
||||||
storage: "5Gi"
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
nfs:
|
|
||||||
path: /export/kluster/actualbudget
|
|
||||||
server: 192.168.1.157
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
namespace: finance
|
|
||||||
name: "actualbudget-data-nfs"
|
|
||||||
spec:
|
|
||||||
storageClassName: "fast"
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: "5Gi"
|
|
||||||
# selector:
|
|
||||||
# matchLabels:
|
|
||||||
# directory: "journal-data"
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
namespace: finance
|
|
||||||
name: actualbudget
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: actualbudget
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 5006
|
|
||||||
targetPort: 5006
|
|
||||||
type: ClusterIP
|
|
||||||
---
|
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
|
||||||
kind: IngressRoute
|
|
||||||
metadata:
|
|
||||||
namespace: finance
|
|
||||||
name: actualbudget
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- websecure
|
|
||||||
routes:
|
|
||||||
- match: Host(`actualbudget.kluster.moll.re`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: actualbudget
|
|
||||||
port: 5006
|
|
||||||
tls:
|
|
||||||
certResolver: default-tls
|
|
||||||
|
15
apps/finance/actualbudget.ingress.yaml
Normal file
15
apps/finance/actualbudget.ingress.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: actualbudget
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`actualbudget.kluster.moll.re`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: actualbudget
|
||||||
|
port: 5006
|
||||||
|
tls:
|
||||||
|
certResolver: default-tls
|
27
apps/finance/actualbudget.pvc.yaml
Normal file
27
apps/finance/actualbudget.pvc.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: "actualbudget-data-nfs"
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: "5Gi"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
nfs:
|
||||||
|
path: /export/kluster/actualbudget
|
||||||
|
server: 192.168.1.157
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: "actualbudget-data-nfs"
|
||||||
|
spec:
|
||||||
|
storageClassName: ""
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "5Gi"
|
||||||
|
|
||||||
|
volumeName: actualbudget-data-nfs
|
12
apps/finance/actualbudget.service.yaml
Normal file
12
apps/finance/actualbudget.service.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: actualbudget
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: actualbudget
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 5006
|
||||||
|
targetPort: 5006
|
||||||
|
type: ClusterIP
|
@ -1,66 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: firefly-importer
|
|
||||||
name: firefly-importer
|
|
||||||
namespace: finance
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: firefly-importer
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: firefly-importer
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: fireflyiii/data-importer:latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
name: firefly-importer
|
|
||||||
resources: {}
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
env:
|
|
||||||
- name: FIREFLY_III_ACCESS_TOKEN
|
|
||||||
value: redacted
|
|
||||||
- name: FIREFLY_III_URL
|
|
||||||
value: firefly-http:8080
|
|
||||||
# - name: APP_URL
|
|
||||||
# value: https://finance.kluster.moll.re
|
|
||||||
- name: TRUSTED_PROXIES
|
|
||||||
value: "**"
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: firefly-importer-http
|
|
||||||
namespace: finance
|
|
||||||
labels:
|
|
||||||
app: firefly-importer-http
|
|
||||||
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- port: 8080
|
|
||||||
# name: http
|
|
||||||
selector:
|
|
||||||
app: firefly-importer
|
|
||||||
---
|
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
|
||||||
kind: IngressRoute
|
|
||||||
metadata:
|
|
||||||
name: firefly-importer-ingress
|
|
||||||
namespace: finance
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- websecure
|
|
||||||
routes:
|
|
||||||
- match: Host(`importer.finance.kluster.moll.re`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: firefly-importer-http
|
|
||||||
port: 8080
|
|
||||||
tls:
|
|
||||||
certResolver: default-tls
|
|
@ -1,79 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: firefly
|
|
||||||
name: firefly
|
|
||||||
namespace: finance
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: firefly
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: firefly
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: fireflyiii/core:latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
name: firefly
|
|
||||||
resources: {}
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
env:
|
|
||||||
- name: APP_ENV
|
|
||||||
value: "local"
|
|
||||||
- name: APP_KEY
|
|
||||||
value: iKejRAlgwx2Y/fxdosXjABbNxNzEuJdl
|
|
||||||
- name: DB_CONNECTION
|
|
||||||
value: sqlite
|
|
||||||
- name: APP_URL
|
|
||||||
value: https://finance.kluster.moll.re
|
|
||||||
- name: TRUSTED_PROXIES
|
|
||||||
value: "**"
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/www/html/storage/database
|
|
||||||
name: firefly-database
|
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: firefly-database
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: firefly-database-nfs
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: firefly-http
|
|
||||||
namespace: finance
|
|
||||||
labels:
|
|
||||||
app: firefly-http
|
|
||||||
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- port: 8080
|
|
||||||
# name: http
|
|
||||||
selector:
|
|
||||||
app: firefly
|
|
||||||
---
|
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
|
||||||
kind: IngressRoute
|
|
||||||
metadata:
|
|
||||||
name: firefly-ingress
|
|
||||||
namespace: finance
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- websecure
|
|
||||||
routes:
|
|
||||||
- match: Host(`finance.kluster.moll.re`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: firefly-http
|
|
||||||
port: 8080
|
|
||||||
tls:
|
|
||||||
certResolver: default-tls
|
|
||||||
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
namespace: finance
|
|
||||||
name: firefly-database-nfs
|
|
||||||
labels:
|
|
||||||
directory: firefly
|
|
||||||
spec:
|
|
||||||
# storageClassName: fast
|
|
||||||
# volumeMode: Filesystem
|
|
||||||
accessModes:
|
|
||||||
- ReadOnlyMany
|
|
||||||
capacity:
|
|
||||||
storage: "1G"
|
|
||||||
|
|
||||||
nfs:
|
|
||||||
path: /firefly # inside nfs part.
|
|
||||||
server: 10.43.239.43 # assigned to nfs-server service. Won't change as long as service is not redeployed
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
namespace: finance
|
|
||||||
name: firefly-database-nfs
|
|
||||||
spec:
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: "1G"
|
|
||||||
# storageClassName: fast
|
|
||||||
accessModes:
|
|
||||||
- ReadOnlyMany
|
|
||||||
volumeName: firefly-database-nfs
|
|
||||||
|
|
16
apps/finance/kustomization.yaml
Normal file
16
apps/finance/kustomization.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
namespace: finance
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- actualbudget.pvc.yaml
|
||||||
|
- actualbudget.deployment.yaml
|
||||||
|
- actualbudget.service.yaml
|
||||||
|
- actualbudget.ingress.yaml
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: actualbudget
|
||||||
|
newName: actualbudget/actual-server
|
||||||
|
newTag: 23.12.1
|
4
apps/finance/namespace.yaml
Normal file
4
apps/finance/namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: placeholder
|
18
kluster-deployments/finance/application.yaml
Normal file
18
kluster-deployments/finance/application.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: finance-application
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: apps
|
||||||
|
source:
|
||||||
|
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
|
||||||
|
targetRevision: main
|
||||||
|
path: apps/finance
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: finance
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
4
kluster-deployments/finance/kustomization.yaml
Normal file
4
kluster-deployments/finance/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- application.yaml
|
@ -34,3 +34,4 @@ resources:
|
|||||||
- media/
|
- media/
|
||||||
- nextcloud/
|
- nextcloud/
|
||||||
- syncthing/
|
- syncthing/
|
||||||
|
- finance/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user