File tree Expand file tree Collapse file tree 6 files changed +114
-2
lines changed
apps/ghostfolio/components/postgres
clusters/svc.ez.soeren.cloud/ghostfolio Expand file tree Collapse file tree 6 files changed +114
-2
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,12 @@ spec:
62
62
- name : " POSTGRES_USER"
63
63
valueFrom :
64
64
secretKeyRef :
65
- name : " ghostfolio"
65
+ name : " ghostfolio-postgres "
66
66
key : " POSTGRES_USER"
67
67
- name : " POSTGRES_PASSWORD"
68
68
valueFrom :
69
69
secretKeyRef :
70
- name : " ghostfolio"
70
+ name : " ghostfolio-postgres "
71
71
key : " POSTGRES_PASSWORD"
72
72
- name : " PGDATA"
73
73
value : " /data/pgdata"
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : external-secrets.io/v1beta1
3
+ kind : ExternalSecret
4
+ metadata :
5
+ name : " ghostfolio"
6
+ spec :
7
+ refreshInterval : 12h
8
+ secretStoreRef :
9
+ name : " vault"
10
+ kind : " ClusterSecretStore"
11
+ target :
12
+ name : " ghostfolio"
13
+ template :
14
+ engineVersion : v2
15
+ data :
16
+ DATABASE_URL : " postgresql://{{ .postgres_user }}:{{ .postgres_password }}@postgres:5432/ghostfolio?connect_timeout=300"
17
+ JWT_SECRET_KEY : " {{ .jwt_secret_key }}"
18
+ ACCESS_TOKEN_SALT : " {{ .access_token_salt }}"
19
+ data :
20
+ - secretKey : " postgres_user"
21
+ remoteRef :
22
+ key : " secret/soeren.cloud/env/prod/ghostfolio"
23
+ property : " POSTGRES_USER"
24
+ - secretKey : " postgres_password"
25
+ remoteRef :
26
+ key : " secret/soeren.cloud/env/prod/ghostfolio"
27
+ property : " POSTGRES_PASSWORD"
28
+ - secretKey : " jwt_secret_key"
29
+ remoteRef :
30
+ key : " secret/soeren.cloud/env/prod/ghostfolio"
31
+ property : " JWT_SECRET"
32
+ - secretKey : " access_token_salt"
33
+ remoteRef :
34
+ key : " secret/soeren.cloud/env/prod/ghostfolio"
35
+ property : " ACCESS_TOKEN_SALT"
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : external-secrets.io/v1beta1
3
+ kind : ExternalSecret
4
+ metadata :
5
+ name : " ghostfolio-postgres"
6
+ spec :
7
+ refreshInterval : 12h
8
+ secretStoreRef :
9
+ name : " vault"
10
+ kind : " ClusterSecretStore"
11
+ target :
12
+ name : " ghostfolio-postgres"
13
+ creationPolicy : " Owner"
14
+ data :
15
+ - secretKey : " POSTGRES_USER"
16
+ remoteRef :
17
+ key : " secret/soeren.cloud/env/prod/ghostfolio"
18
+ property : " POSTGRES_USER"
19
+ - secretKey : " POSTGRES_PASSWORD"
20
+ remoteRef :
21
+ key : " secret/soeren.cloud/env/prod/ghostfolio"
22
+ property : " POSTGRES_PASSWORD"
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : kustomize.config.k8s.io/v1beta1
3
+ kind : Kustomization
4
+ namespace : " ghostfolio"
5
+ resources :
6
+ - " ../../../apps/ghostfolio"
7
+ - " namespace.yaml"
8
+ - " postgres-data-pv.yaml"
9
+ - " external-secret-ghostfolio.yaml"
10
+ - " external-secret-postgres.yaml"
11
+ components :
12
+ - ../../../apps/ghostfolio/components/istio
13
+ - ../../../apps/ghostfolio/components/postgres
14
+ - ../../../apps/ghostfolio/components/postgres-pvc
15
+ - ../../../apps/ghostfolio/components/redis
16
+ patches :
17
+ - target :
18
+ kind : " VirtualService"
19
+ name : " ghostfolio"
20
+ patch : |
21
+ - op: "replace"
22
+ path: "/spec/hosts"
23
+ value:
24
+ - "ghostfolio.svc.ez.soeren.cloud"
Original file line number Diff line number Diff line change
1
+ ---
2
+ kind : Namespace
3
+ apiVersion : v1
4
+ metadata :
5
+ name : ghostfolio
6
+ labels :
7
+ name : ghostfolio
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : v1
3
+ kind : PersistentVolume
4
+ metadata :
5
+ name : ghostfolio-postgres
6
+ spec :
7
+ accessModes :
8
+ - ReadWriteOnce
9
+ capacity :
10
+ storage : 1Gi
11
+ storageClassName : local-storage
12
+ local :
13
+ path : " /mnt/k8s/ghostfolio-postgres"
14
+ claimRef :
15
+ namespace : " ghostfolio"
16
+ name : " ghostfolio-postgres"
17
+ nodeAffinity :
18
+ required :
19
+ nodeSelectorTerms :
20
+ - matchExpressions :
21
+ - key : kubernetes.io/hostname
22
+ operator : In
23
+ values :
24
+ - k8s.ez.soeren.cloud
You can’t perform that action at this time.
0 commit comments