[DO-1600] Fix name files and secret postgres_exporter (!80)

[DO-1600]

Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech>
Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/80
This commit is contained in:
Denis Patrakeev
2025-03-04 11:49:15 +03:00
parent f315e91583
commit 7b5288519d
10 changed files with 30 additions and 21 deletions

View File

@@ -20,7 +20,7 @@ spec:
targetRevision: 6.9.0
helm:
valueFiles:
- $values/clusters/k8s-avroid-office.prod.local/namespaces/cloud-prod/monitoring/postgres-exporter/values-ovveride.yaml
- $values/clusters/k8s-avroid-office.prod.local/namespaces/cloud-prod/monitoring/postgres-exporter/values-override.yaml
syncPolicy:
automated:
prune: true

View File

@@ -21,6 +21,31 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: vault
config:
## The datasource properties on config are passed through helm tpl function.
## ref: https://helm.sh/docs/developing_charts/#using-the-tpl-function
datasource:
# Specify userFile if DB username is stored in a file.
# For example, to use with vault-injector from Hashicorp
userSecret:
name: postgres-exporter-config
key: username
# Only one of password, passwordFile, passwordSecret and pgpassfile can be specified
passwordSecret:
name: postgres-exporter-config
key: password
# postgres_exporter.yml
postgresExporter:
auth_modules:
pg_monitoring:
type: userpass
userpass:
username: $DATA_SOURCE_USER
password: $DATA_SOURCE_PASS
options:
sslmode: disable
nodeSelector:
node-role.kubernetes.io/worker: ""
@@ -37,19 +62,3 @@ deployment:
vault.security.banzaicloud.io/vault-role: "cloud-prod"
vault.security.banzaicloud.io/vault-skip-verify: "false"
vault.security.banzaicloud.io/vault-path: "avroid-office"
# Additional volumes, e. g. for secrets used in an extraContainer
extraVolumes:
- name: postgres-exporter-config
secret:
defaultMode: 420
items:
- key: postgres_exporter.yml
path: postgres_exporter.yml
secretName: postgres-exporter-secret
# Additional volume mounts
extraVolumeMounts:
- name: postgres-exporter-config
mountPath: /etc/postgres_exporter.yml
subPath: postgres_exporter.yml

View File

@@ -20,7 +20,7 @@ spec:
targetRevision: 6.9.0
helm:
valueFiles:
- $values/clusters/k8s-avroid-office.prod.local/namespaces/cloud-prod/monitoring/redis-exporter/values-ovveride.yaml
- $values/clusters/k8s-avroid-office.prod.local/namespaces/cloud-prod/monitoring/redis-exporter/values-override.yaml
syncPolicy:
automated:
prune: true