fix(authentik): manually create a service monitor
This commit is contained in:
parent
e3a2ef3394
commit
3866f0333d
|
@ -46,15 +46,15 @@ spec:
|
|||
host: "redis-master.database"
|
||||
# password: "${SECRET_DATABASE_REDIS_PASS}"
|
||||
|
||||
prometheus:
|
||||
serviceMonitor:
|
||||
create: true
|
||||
labels:
|
||||
release: kube-prometheus-stack
|
||||
rules:
|
||||
create: true
|
||||
labels:
|
||||
release: kube-prometheus-stack
|
||||
# prometheus:
|
||||
# serviceMonitor:
|
||||
# create: true
|
||||
# labels:
|
||||
# release: kube-prometheus-stack
|
||||
# rules:
|
||||
# create: true
|
||||
# labels:
|
||||
# release: kube-prometheus-stack
|
||||
|
||||
env:
|
||||
AUTHENTIK_HOST: &host "auth.${SECRET_NEW_DOMAIN}"
|
||||
|
|
|
@ -8,4 +8,5 @@ resources:
|
|||
#- ./network_policy.yaml
|
||||
- ./traefik-middleware.yaml
|
||||
- ./dashboard.yaml
|
||||
- ./service-monitor.yaml
|
||||
#- ./ldap-outpost
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: authentik
|
||||
namespace: authentik
|
||||
labels:
|
||||
release: kube-prometheus-stack
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: authentik
|
||||
endpoints:
|
||||
- port: http-metrics
|
||||
interval: 30s
|
||||
scrapeTimeout: 3s
|
||||
path: /metrics
|
Loading…
Reference in New Issue