From bcc816d5e5dedb541c51d5e28866b887ee2a6a82 Mon Sep 17 00:00:00 2001 From: Alexandre Allard Date: Mon, 17 May 2021 11:31:26 +0200 Subject: [PATCH] charts,salt: enable Dex metrics Enable telemetry and re-render dex chart: ``` ./charts/render.py dex \ --namespace metalk8s-auth charts/dex.yaml \ --service-config dex metalk8s-dex-config \ metalk8s/addons/dex/config/dex.yaml.j2 metalk8s-auth \ --remove-manifest Secret dex \ charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Refs: #3374 --- charts/dex.yaml | 3 +++ salt/metalk8s/addons/dex/deployed/chart.sls | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/charts/dex.yaml b/charts/dex.yaml index 0f9c6ff3e9..9aa9fe4d79 100644 --- a/charts/dex.yaml +++ b/charts/dex.yaml @@ -94,3 +94,6 @@ config: enablePasswordDB: true staticPasswords: [] + +# Expose metrics for Prometheus +telemetry: true diff --git a/salt/metalk8s/addons/dex/deployed/chart.sls b/salt/metalk8s/addons/dex/deployed/chart.sls index f7e4e59034..00aa82f3f4 100644 --- a/salt/metalk8s/addons/dex/deployed/chart.sls +++ b/salt/metalk8s/addons/dex/deployed/chart.sls @@ -88,6 +88,9 @@ spec: - name: https port: 32000 targetPort: https + - name: telemetry + port: 37000 + targetPort: telemetry selector: app.kubernetes.io/instance: dex app.kubernetes.io/name: dex @@ -147,6 +150,9 @@ spec: - containerPort: 5556 name: https protocol: TCP + - containerPort: 5558 + name: telemetry + protocol: TCP resources: null volumeMounts: - mountPath: /etc/dex/cfg