[hotfix] fix secret for redis_exporter (!76)

Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech>
Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/76
This commit is contained in:
Denis Patrakeev
2025-03-03 18:21:18 +03:00
parent 6ed51fa0e6
commit 14fb2e2812
2 changed files with 20 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
---
apiVersion: v1
kind: Secret
metadata:
labels:
app.kubernetes.io/managed-by: argocd
name: redis-exporter-secret
namespace: cloud-prod
annotations:
vault.security.banzaicloud.io/vault-addr: "https://vault.avroid.tech"
vault.security.banzaicloud.io/vault-role: "cloud-prod"
vault.security.banzaicloud.io/vault-skip-verify: "false"
vault.security.banzaicloud.io/vault-path: "avroid-office"
type: Opaque
data:
REDIS_PASSWORD: dmF1bHQ6dGVhbS1kZXZvcHMvZGF0YS9zZXJ2aWNlcy9tb25pdG9yaW5nL2s4cy9jbG91ZC1wcm9kL3JlZGlzLWV4cG9ydGVyI1JFRElTX1BBU1NXT1JECg==

View File

@@ -28,10 +28,11 @@ annotations:
vault.security.banzaicloud.io/vault-role: "cloud-prod"
vault.security.banzaicloud.io/vault-skip-verify: "false"
vault.security.banzaicloud.io/vault-path: "avroid-office"
vault.security.banzaicloud.io/vault-env-from-path: "team-devops/data/services/monitoring/k8s/cloud-prod/redis-exporter"
auth:
# Use password authentication
enabled: true
# Redis password (when not stored in a secret)
redisPassword: $REDIS_PASSWORD
# Use existing secret (ignores redisPassword)
secret:
name: "redis-exporter-secret"
key: "REDIS_PASSWORD"