Skip to content

Commit d1d9c0e

Browse files
committed
Update Traefik docs with Prometheus annotations
Signed-off-by: Stefan Prodan <[email protected]>
1 parent c1b1d7d commit d1d9c0e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/gitbook/tutorials/traefik-progressive-delivery.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@ Install Traefik with Helm v3:
1313
```bash
1414
helm repo add traefik https://helm.traefik.io/traefik
1515
kubectl create ns traefik
16-
helm upgrade -i traefik traefik/traefik \
17-
--namespace traefik \
18-
--set additionalArguments="{--metrics.prometheus=true}"
16+
17+
cat <<EOF | helm upgrade -i traefik traefik/traefik --namespace traefik -f -
18+
deployment:
19+
podAnnotations:
20+
prometheus.io/port: "9100"
21+
prometheus.io/scrape: "true"
22+
prometheus.io/path: "/metrics"
23+
metrics:
24+
prometheus:
25+
entryPoint: metrics
26+
EOF
1927
```
2028

2129
Install Flagger and the Prometheus add-on in the same namespace as Traefik:

0 commit comments

Comments
 (0)