Skip to content

Commit 97d75c5

Browse files
committed
kestra
1 parent fd52f8d commit 97d75c5

File tree

2 files changed

+45
-37
lines changed

2 files changed

+45
-37
lines changed

kubernetes/charts/kestra/templates/secrets.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121

2222
---
2323
# Secret per credenziali admin Kestra (basic auth)
24-
# Questo secret viene montato come file di configurazione
24+
# Questo secret viene montato come file di configurazione YAML
2525
apiVersion: external-secrets.io/v1
2626
kind: ExternalSecret
2727
metadata:
@@ -43,8 +43,8 @@ spec:
4343
security:
4444
basic-auth:
4545
enabled: true
46-
username: {{ .username }}
47-
password: {{ .password }}
46+
username: "{{ .username }}"
47+
password: "{{ .password }}"
4848
data:
4949
- secretKey: username
5050
remoteRef:
@@ -58,7 +58,6 @@ spec:
5858

5959
---
6060
# Secret per workflow (accessibili tramite secret() function nei flow)
61-
# Questi saranno passati come environment variables
6261
apiVersion: external-secrets.io/v1
6362
kind: ExternalSecret
6463
metadata:

kubernetes/charts/kestra/values.yaml

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ kestra:
1414
cpu: 500m
1515
memory: 2Gi
1616

17-
# Node selector, tolerations, affinity (se necessario)
1817
nodeSelector: {}
1918
tolerations: []
2019
affinity: {}
2120

22-
# Environment variables da secrets
21+
# Environment variables da secrets per i workflow
2322
extraEnvFrom:
2423
- secretRef:
2524
name: kestra-workflow-secrets
2625

27-
# Environment variables aggiuntive
26+
# Environment variables per database PostgreSQL
2827
extraEnv:
2928
- name: TZ
3029
value: "Europe/Rome"
31-
# Database connection (usando il secret)
30+
31+
# Configurazione datasource PostgreSQL
3232
- name: DATASOURCES_POSTGRES_URL
3333
value: "jdbc:postgresql://192.168.0.30:5432/kestra_db"
3434
- name: DATASOURCES_POSTGRES_USERNAME
@@ -38,38 +38,63 @@ kestra:
3838
secretKeyRef:
3939
name: kestra-db-secret
4040
key: postgres_password
41+
- name: DATASOURCES_POSTGRES_DRIVER_CLASS_NAME
42+
value: "org.postgresql.Driver"
43+
44+
# Monta il secret basic-auth come file di configurazione
45+
extraVolumes:
46+
- name: basic-auth-config
47+
secret:
48+
secretName: kestra-basic-auth
49+
- name: storage
50+
persistentVolumeClaim:
51+
claimName: kestra-storage
52+
53+
extraVolumeMounts:
54+
- name: basic-auth-config
55+
mountPath: /app/confs/basic-auth.yml
56+
subPath: basic-auth.yml
57+
readOnly: true
58+
- name: storage
59+
mountPath: /app/storage
4160

42-
# Configurazione Kestra
61+
# Configurazione Kestra - questa è la configurazione principale!
4362
configurations:
44-
# Configurazione principale dell'applicazione
4563
application:
64+
datasources:
65+
postgres:
66+
url: jdbc:postgresql://192.168.0.30:5432/kestra_db
67+
username: kestra_user
68+
password: ${DATASOURCES_POSTGRES_PASSWORD}
69+
driver-class-name: org.postgresql.Driver
70+
4671
kestra:
4772
server:
4873
base-url: "https://kestra.local.ildoc.it"
4974

50-
# Repository (metadati workflow, executions, etc.)
75+
# Repository usando PostgreSQL
5176
repository:
5277
type: postgres
5378

54-
# Queue (task scheduling)
79+
# Queue usando PostgreSQL
5580
queue:
5681
type: postgres
5782

58-
# Storage per file, logs, outputs
83+
# Storage locale (montato da PVC)
5984
storage:
6085
type: local
6186
local:
6287
base-path: "/app/storage"
6388

64-
# Tasks configuration
89+
# Configurazione tasks
6590
tasks:
6691
tmp-dir:
6792
path: "/tmp/kestra-wd/tmp"
6893

69-
# URL configuration
94+
# URL pubblico
7095
url: "https://kestra.local.ildoc.it"
7196

72-
# Secret montato come file per basic auth
97+
# Monta il secret come file addizionale
7398
secrets:
7499
- name: kestra-basic-auth
75100
key: basic-auth.yml
@@ -79,14 +104,13 @@ kestra:
79104
create: true
80105
automount: false
81106

82-
# Deployment modes
107+
# Deployment standalone
83108
deployments:
84-
# Standalone mode (tutto in un pod - perfetto per homelab)
85109
standalone:
86110
enabled: true
87-
workerThreads: 0 # Auto-detect based on CPU
111+
workerThreads: 0
88112

89-
# Disabilita deployment distribuiti
113+
# Disabilita tutti gli altri
90114
webserver:
91115
enabled: false
92116
executor:
@@ -113,7 +137,7 @@ kestra:
113137
targetPort: management
114138
protocol: TCP
115139

116-
# Docker-in-Docker per eseguire container
140+
# Docker-in-Docker
117141
dind:
118142
enabled: true
119143
mode: 'rootless'
@@ -139,21 +163,6 @@ kestra:
139163
cpu: 100m
140164
memory: 512Mi
141165

142-
# Ingress disabilitato (usiamo HTTPRoute)
166+
# Ingress disabilitato
143167
ingress:
144168
enabled: false
145-
146-
# # Manifesti extra per PVC
147-
# extraManifests:
148-
# - apiVersion: v1
149-
# kind: PersistentVolumeClaim
150-
# metadata:
151-
# name: kestra-storage
152-
# namespace: apps
153-
# spec:
154-
# accessModes:
155-
# - ReadWriteOnce
156-
# storageClassName: nfs-csi
157-
# resources:
158-
# requests:
159-
# storage: 20Gi

0 commit comments

Comments
 (0)