Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
13b443b
addition of finops module
kamal-devtron Dec 23, 2025
f78e5a6
added files for finops
kamal-devtron Dec 23, 2025
8fc04f6
remove few files
kamal-devtron Dec 23, 2025
043473b
changes in values.yaml
kamal-devtron Dec 23, 2025
d197e5b
changes in template
kamal-devtron Dec 23, 2025
ff2225e
changes in bom file
kamal-devtron Dec 23, 2025
9bf10c9
changes
kamal-devtron Dec 23, 2025
08ddeb0
added hook
kamal-devtron Dec 23, 2025
a3d8436
changes
kamal-devtron Dec 23, 2025
78f46b3
changes
kamal-devtron Dec 23, 2025
b6bbacb
changes
kamal-devtron Dec 23, 2025
b3a89a5
post hook
kamal-devtron Dec 23, 2025
b83721c
post hook
kamal-devtron Dec 23, 2025
f6de14b
post hook
kamal-devtron Dec 23, 2025
5318f1d
changes in files
kamal-devtron Dec 24, 2025
0132adf
pre-upgrade added
kamal-devtron Dec 24, 2025
8a32b72
pre-upgrade added
kamal-devtron Dec 24, 2025
d70254d
handle create ns
kamal-devtron Dec 24, 2025
244a1d7
handle create ns
kamal-devtron Dec 24, 2025
a9449c7
handle create ns
kamal-devtron Dec 24, 2025
3b3c267
handle create ns
kamal-devtron Dec 24, 2025
c3e0ab5
handle create ns
kamal-devtron Dec 24, 2025
ffbde0e
changes in namespace
kamal-devtron Dec 24, 2025
43e926a
changes in namespace
kamal-devtron Dec 24, 2025
9996024
removed timescale-db namespace
kamal-devtron Dec 24, 2025
cb9223d
switched the timescale related configs to values.yaml driven
akshatsinha007 Dec 24, 2025
04f7ce3
Resolved timescale crds issue
kamal-devtron Dec 24, 2025
e8bbded
Resolved timescale crds labels issue
kamal-devtron Dec 24, 2025
638de7c
Resolved timescale crds labels issue
kamal-devtron Dec 24, 2025
a2fc29e
Added timescale config changes
kamal-devtron Dec 25, 2025
3061a4b
Devtron 2.0 Configurations
kamal-devtron Dec 25, 2025
842c6cb
changes in values
kamal-devtron Dec 26, 2025
14715ef
Merge remote-tracking branch 'origin-ssh/main' into HEAD
kamal-devtron Dec 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/devtron/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ version: 0.22.98
sources:
- https://github.com/devtron-labs/charts
dependencies:
- name: cloudnative-pg
version: 0.26.0
repository: https://cloudnative-pg.io/charts
condition: devtronEnterprise.finops.enabled
- name: argo-cd
version: "7.7.15"
repository: https://argoproj.github.io/argo-helm
Expand Down
7 changes: 7 additions & 0 deletions charts/devtron/devtron-bom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ monitoring:
imagePullPolicy: IfNotPresent
devtronEnterprise:
enabled: false
finops:
enabled: true
costSync:
image: "quay.io/cost-syc"
timescale:
password: "nflkwednsclkwmdnsc"
user: "postgres"
casbin:
registry: ""
image: "casbin:f6ff5f74-064b67e5-462-30822"
Expand Down
3 changes: 3 additions & 0 deletions charts/devtron/templates/configmap-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ data:
{{- else }}
PG_PASSWORD: {{ $postgresPwd }}
{{- end }}
{{- if $.Values.devtronEnterprise.finops.enabled }}
TIMESCALE_PASSWORD: {{ $.Values.devtronEnterprise.finops.timescalePassword }}
{{- end }}
{{- if $.Values.installer.modules }}
{{- if has "cicd" $.Values.installer.modules }}
EXTERNAL_CI_API_SECRET: {{ $EXTERNAL_CI_API_SECRET }}
Expand Down
64 changes: 64 additions & 0 deletions charts/devtron/templates/cost-sync-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{{- if .Values.devtronEnterprise.finops.enabled }}
apiVersion: batch/v1
kind: CronJob
metadata:
name: cost-sync-job
namespace: devtroncd
spec:
concurrencyPolicy: Allow
failedJobsHistoryLimit: 1
jobTemplate:
spec:
activeDeadlineSeconds: 3600
template:
metadata:
labels:
app: cost-sync-job
spec:
containers:
envFrom:
- configMapRef:
name: cost-sync-cm
- secretRef:
name: devtron-secret
image: {{ .Values.devtronEnterprise.finops.costSync.image }}
imagePullPolicy: IfNotPresent
name: cost-sync-job
ports:
- containerPort: 8080
name: app
protocol: TCP
resources: {}
terminationGracePeriodSeconds: 30
schedule: 10 * * * *
startingDeadlineSeconds: 100
successfulJobsHistoryLimit: 3
suspend: false
timeZone: UTC
---
apiVersion: v1
data:
JOB_INTERVAL_MINUTES: "60"
LOG_LEVEL: info
MAX_INTERVALS_PER_RUN: "6"
PG_ADDR: postgresql-postgresql.devtroncd
PG_DATABASE: orchestrator
PG_USER: postgres
POSTGRES_HOST: postgresql-postgresql.devtroncd
POSTGRES_NAME: orchestrator
POSTGRES_PORT: "5432"
POSTGRES_SSL_MODE: disable
POSTGRES_USER: postgres
PROMETHEUS_DELAY_MINUTES: "5"
TIMESCALE_ADDR: timescaledb-cluster-pg15-rw.timescale-db
TIMESCALE_DATABASE: finops
TIMESCALE_HOST: timescaledb-cluster-pg15-rw.timescale-db
TIMESCALE_NAME: finops
TIMESCALE_PORT: "5432"
TIMESCALE_SSL_MODE: disable
TIMESCALE_USER: postgres
kind: ConfigMap
metadata:
name: cost-sync-2802
namespace: devtroncd
{{- end }}
82 changes: 82 additions & 0 deletions charts/devtron/templates/timescale-db.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{{- if .Values.devtronEnterprise.finops.enabled }}
apiVersion: v1
kind: Namespace
metadata:
name: timescale-db
---
apiVersion: postgresql.cnpg.io/v1
kind: ImageCatalog
metadata:
name: cloudnative-pg-timescaledb-pg15
namespace: timescale-db
spec:
images:
- major: 15
image: timescale/timescaledb-ha:pg15-ts2.18-all
---
apiVersion: v1
kind: ConfigMap
metadata:
name: init-schema
namespace: timescale-db
data:
init-schema.sql: |
CREATE EXTENSION IF NOT EXISTS timescaledb;
---
apiVersion: v1
kind: Secret
metadata:
name: timescaledb-cluster-pg15-superuser
namespace: timescale-db
type: kubernetes.io/basic-auth
data:
username: {{ .Values.devtronEnterprise.finops.timescale.user | b64enc }}
password: {{ .Values.devtronEnterprise.finops.timescale.password | b64enc }}
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: timescaledb-cluster-pg15
namespace: timescale-db
spec:
affinity:
tolerations:
- effect: NoSchedule
key: dedicated
operator: Equal
value: production
nodeSelector:
purpose: prod
instances: 1
enableSuperuserAccess: true
imageCatalogRef:
apiGroup: postgresql.cnpg.io
kind: ImageCatalog
name: cloudnative-pg-timescaledb-pg15
major: 15
postgresUID: 1000
postgresGID: 1000
resources: {}
postgresql:
shared_preload_libraries:
- 'timescaledb'
parameters:
max_wal_size: "1GB"
max_wal_senders: "3"
wal_level: "replica"
pg_hba:
- host all all all scram-sha-256
bootstrap:
initdb:
database: finops
owner: postgres # This should match the username in timescaledb-cluster-pg15-superuser
secret:
name: timescaledb-cluster-pg15-superuser
postInitApplicationSQLRefs:
configMapRefs:
- name: init-schema
key: init-schema.sql
storage:
size: 5Gi
storageClass: default
{{- end }}
7 changes: 7 additions & 0 deletions charts/devtron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,13 @@ monitoring:
# Change these values for Devtron-Enterprise
devtronEnterprise:
enabled: false
finops:
enabled: false
costSync:
image: "quay.io/cost-syc"
timescale:
password: "nflkwednsclkwmdnsc"
user: "postgres"
casbin:
registry: ""
image: "casbin:f6ff5f74-064b67e5-462-30822"
Expand Down
Loading