Skip to content

Commit 56f9f05

Browse files
committed
kestra
1 parent de081e5 commit 56f9f05

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

kubernetes/charts/kestra/values.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,15 @@ kestra:
4646
type: local
4747
local:
4848
base-path: "/app/storage"
49+
50+
# Configurazione datasource (senza credenziali)
51+
datasources:
52+
postgres:
53+
url: jdbc:postgresql://192.168.0.30:5432/kestra_db
54+
driver-class-name: org.postgresql.Driver
55+
dialect: POSTGRES
4956

50-
# Carica le credenziali DB da secret esterno
57+
# Carica le credenziali DB da secret esterno (username + password)
5158
secrets:
5259
- name: kestra-db-secret
5360
key: application-secrets.yml

kubernetes/infra/manifests/infra-secrets/kestra-secrets.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# Secret per database credentials (montato come file di configurazione)
2+
# Secret per database credentials (username + password)
33
apiVersion: external-secrets.io/v1
44
kind: ExternalSecret
55
metadata:
@@ -16,15 +16,12 @@ spec:
1616
template:
1717
engineVersion: v2
1818
data:
19-
# File con SOLO le credenziali del database
19+
# File con SOLO username e password (si fa merge con configurations.application)
2020
application-secrets.yml: |
21-
kestra:
22-
datasources:
23-
postgres:
24-
url: jdbc:postgresql://192.168.0.30:5432/kestra_db
25-
driver-class-name: org.postgresql.Driver
26-
username: kestra_user
27-
password: {{ .postgres_password }}
21+
datasources:
22+
postgres:
23+
username: kestra_user
24+
password: {{ .postgres_password }}
2825
data:
2926
- secretKey: postgres_password
3027
remoteRef:

0 commit comments

Comments
 (0)