Skip to content

Commit

Permalink
charts,salt: enable Dex metrics
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alexandre-allard committed May 17, 2021
1 parent 2f8a8bf commit bcc816d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,6 @@ config:

enablePasswordDB: true
staticPasswords: []

# Expose metrics for Prometheus
telemetry: true
6 changes: 6 additions & 0 deletions salt/metalk8s/addons/dex/deployed/chart.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -147,6 +150,9 @@ spec:
- containerPort: 5556
name: https
protocol: TCP
- containerPort: 5558
name: telemetry
protocol: TCP
resources: null
volumeMounts:
- mountPath: /etc/dex/cfg
Expand Down

0 comments on commit bcc816d

Please sign in to comment.