diff --git a/Chart.yaml b/Chart.yaml index 576678d..4f17ea2 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -28,7 +28,7 @@ dependencies: version: 4.5.4 repository: oci://prodnso-harbor-01.smardigo.digital/infrastructure - name: smardigo-connect - version: 0.1.23 + version: 0.1.24 repository: oci://prodnso-harbor-01.smardigo.digital/smardigo - name: smardigo-worker version: 0.1.11 diff --git a/templates/cm_postgres_bkp.yaml b/templates/cm_postgres_bkp.yaml index ea80ff6..d59b35d 100644 --- a/templates/cm_postgres_bkp.yaml +++ b/templates/cm_postgres_bkp.yaml @@ -18,3 +18,4 @@ data: WAL_S3_BUCKET: postgres WAL_BUCKET_SCOPE_PREFIX: "" WAL_BUCKET_SCOPE_SUFFIX: "" + CRONTAB: "['* * * * * /nso_scripts/backup-monitoring.sh']" diff --git a/templates/netpol_egress-postgres2prometheuspushgw.yaml b/templates/netpol_egress-postgres2prometheuspushgw.yaml new file mode 100644 index 0000000..5aaee9d --- /dev/null +++ b/templates/netpol_egress-postgres2prometheuspushgw.yaml @@ -0,0 +1,21 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: egress-postgres2prometheuspushgw +spec: + podSelector: + matchLabels: + cluster-name: postgres-cluster + egress: + - to: + - namespaceSelector: + matchLabels: + kubernetes.io/metadata.name: monitoring + podSelector: + matchLabels: + app.kubernetes.io/instance: prometheus-pushgateway + ports: + - protocol: TCP + port: 9091 + policyTypes: + - Egress diff --git a/values_cusprod.yaml b/values_cusprod.yaml index fd04344..8fb7dce 100644 --- a/values_cusprod.yaml +++ b/values_cusprod.yaml @@ -59,6 +59,15 @@ kibana: name: kibana-cusprod-prodwork01.smardigo.digital smardigo-connect: + postgres: + spec: + volume: + size: 11Gi + monitoring: + alerts: + postgres: + basebackup: + teamLabel: alerting-nso-mobene connect: additional_labels: restart: 20230131-1854 diff --git a/values_cusqa.yaml b/values_cusqa.yaml index f06a3a6..4bb2c71 100644 --- a/values_cusqa.yaml +++ b/values_cusqa.yaml @@ -59,6 +59,15 @@ kibana: name: kibana-cusqa-prodwork01.smardigo.digital smardigo-connect: + postgres: + spec: + volume: + size: 25Gi + monitoring: + alerts: + postgres: + basebackup: + teamLabel: alerting-nso-mobene connect: additional_labels: restart: 20230131-1854 diff --git a/values_nsodev.yaml b/values_nsodev.yaml index 1180d53..fb62594 100644 --- a/values_nsodev.yaml +++ b/values_nsodev.yaml @@ -63,6 +63,11 @@ smardigo-connect: spec: volume: size: 11Gi + monitoring: + alerts: + postgres: + basebackup: + teamLabel: alerting-nso-mobene connect: additional_labels: restart: 20230131-1854