From 8a58f4470c459c46a2ffa5b1dc44c38670035c08 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 09:29:40 +1000 Subject: [PATCH 1/8] Create actual-pvc.yaml --- argocd/budget/actual-pvc.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 argocd/budget/actual-pvc.yaml diff --git a/argocd/budget/actual-pvc.yaml b/argocd/budget/actual-pvc.yaml new file mode 100644 index 0000000..7185ba2 --- /dev/null +++ b/argocd/budget/actual-pvc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: actual-pvc + namespace: budget +spec: + storageClassName: "storage-synology-iscsi" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi From 4ba54f20bb85598196350abbc3c5c560b77b1f5e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 09:30:56 +1000 Subject: [PATCH 2/8] Create actual-deployment.yaml --- argocd/budget/actual-deployment.yaml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 argocd/budget/actual-deployment.yaml diff --git a/argocd/budget/actual-deployment.yaml b/argocd/budget/actual-deployment.yaml new file mode 100644 index 0000000..a7d2742 --- /dev/null +++ b/argocd/budget/actual-deployment.yaml @@ -0,0 +1,30 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: budget + name: actual +spec: + selector: + matchLabels: + app: actual + replicas: 1 + strategy: + type: Recreate + template: + metadata: + labels: + app: actual + spec: + containers: + - name: actual + image: actualbudget/actual-server:24.6.0 + ports: + - containerPort: 5006 + protocol: TCP + volumeMounts: + - mountPath: /data + name: actual-pvc + volumes: + - name: actual-pvc + persistentVolumeClaim: + claimName: actual-pvc From bf87adb68dd0bb225351efbb27a774b799b7418c Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 09:31:30 +1000 Subject: [PATCH 3/8] Update service.yaml --- argocd/budget/service.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/argocd/budget/service.yaml b/argocd/budget/service.yaml index 739d9c8..594cd06 100644 --- a/argocd/budget/service.yaml +++ b/argocd/budget/service.yaml @@ -9,6 +9,6 @@ spec: type: LoadBalancer ports: - name: http - port: 8080 - targetPort: 8080 - protocol: TCP \ No newline at end of file + port: 5006 + targetPort: 5006 + protocol: TCP From 9a2fba5302eae93254e121c788fce771209415d0 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 09:31:46 +1000 Subject: [PATCH 4/8] Update ingress.yaml --- argocd/budget/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argocd/budget/ingress.yaml b/argocd/budget/ingress.yaml index 8396221..550c0f5 100644 --- a/argocd/budget/ingress.yaml +++ b/argocd/budget/ingress.yaml @@ -22,4 +22,4 @@ spec: service: name: budget-svc port: - number: 8080 \ No newline at end of file + number: 5006 From 88acc133854a2e011160fb3eae41ac8431626d5e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 09:32:25 +1000 Subject: [PATCH 5/8] Update firefly-deployment.yaml --- argocd/budget/firefly-deployment.yaml | 50 +-------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/argocd/budget/firefly-deployment.yaml b/argocd/budget/firefly-deployment.yaml index 2b1c86f..8b13789 100644 --- a/argocd/budget/firefly-deployment.yaml +++ b/argocd/budget/firefly-deployment.yaml @@ -1,49 +1 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - namespace: budget - name: actual -spec: - selector: - matchLabels: - app: actual - replicas: 1 - strategy: - type: Recreate - template: - metadata: - labels: - app: actual - spec: - containers: - - name: firefly - image: fireflyiii/core:latest - ports: - - containerPort: 8080 - protocol: TCP - volumeMounts: - - mountPath: /var/www/html/storage/upload - name: firefly-pvc - env: - - name: APP_KEY - value: "12345678901234567890123456789012" - - name: APP_URL - value: https://actual.alex-j-butler.com - - name: TRUSTED_PROXIES - value: "*" - - name: DB_HOST - value: "mysqlcluster.mysql-cluster.svc.cluster.local" - - name: DB_PORT - value: "3306" - - name: DB_CONNECTION - value: mysql - - name: DB_DATABASE - value: firefly - - name: DB_USERNAME - value: "root" - - name: DB_PASSWORD - value: "33VBzChNGQx339tPaU2Y" - volumes: - - name: firefly-pvc - persistentVolumeClaim: - claimName: firefly-pvc + From 5279a67b411d46569e49ccff607f2d55e27d76a3 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 09:32:38 +1000 Subject: [PATCH 6/8] Delete argocd/budget/firefly-deployment.yaml --- argocd/budget/firefly-deployment.yaml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 argocd/budget/firefly-deployment.yaml diff --git a/argocd/budget/firefly-deployment.yaml b/argocd/budget/firefly-deployment.yaml deleted file mode 100644 index 8b13789..0000000 --- a/argocd/budget/firefly-deployment.yaml +++ /dev/null @@ -1 +0,0 @@ - From 0ed26a9868fabbdde03f6d4447771a23b2beb87f Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Jul 2024 09:32:46 +1000 Subject: [PATCH 7/8] Delete argocd/budget/firefly-pvc.yaml --- argocd/budget/firefly-pvc.yaml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 argocd/budget/firefly-pvc.yaml diff --git a/argocd/budget/firefly-pvc.yaml b/argocd/budget/firefly-pvc.yaml deleted file mode 100644 index c84b6e6..0000000 --- a/argocd/budget/firefly-pvc.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: firefly-pvc - namespace: budget -spec: - storageClassName: "storage-synology-iscsi" - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi \ No newline at end of file From 06674d09b47c26dbeef792409b5d8600700d23b1 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 3 Jul 2024 19:47:13 +1000 Subject: [PATCH 8/8] Update actual-deployment.yaml --- argocd/budget/actual-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argocd/budget/actual-deployment.yaml b/argocd/budget/actual-deployment.yaml index a7d2742..b7e6665 100644 --- a/argocd/budget/actual-deployment.yaml +++ b/argocd/budget/actual-deployment.yaml @@ -17,7 +17,7 @@ spec: spec: containers: - name: actual - image: actualbudget/actual-server:24.6.0 + image: actualbudget/actual-server:24.7.0 ports: - containerPort: 5006 protocol: TCP