File tree 2 files changed +21
-9
lines changed
2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,17 @@ Install Traefik with Helm v3:
13
13
``` bash
14
14
helm repo add traefik https://helm.traefik.io/traefik
15
15
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
19
27
```
20
28
21
29
Install Flagger and the Prometheus add-on in the same namespace as Traefik:
Original file line number Diff line number Diff line change 2
2
3
3
set -o errexit
4
4
5
- TRAEFIK_CHART_VERSION=" 9.11.0 " # traefik 2.3.3
5
+ TRAEFIK_CHART_VERSION=" 10.1.1 " # traefik 2.4.9
6
6
REPO_ROOT=$( git rev-parse --show-toplevel)
7
7
8
8
mkdir -p ${REPO_ROOT} /bin
@@ -12,20 +12,24 @@ kubectl create ns traefik
12
12
13
13
echo ' >>> Installing Traefik'
14
14
helm repo add traefik https://helm.traefik.io/traefik
15
- cat << EOF | helm upgrade -i traefik traefik/traefik --version=${TRAEFIK_VERSION} --namespace traefik -f -
16
- additionalArguments:
17
- - "--metrics.prometheus=true"
15
+ cat << EOF | helm upgrade -i traefik traefik/traefik --version=${TRAEFIK_CHART_VERSION} --wait --namespace traefik -f -
18
16
deployment:
19
17
podAnnotations:
20
- "prometheus.io/port": "9000"
21
- "prometheus.io/scrape": "true"
18
+ prometheus.io/port: "9100"
19
+ prometheus.io/scrape: "true"
20
+ prometheus.io/path: "/metrics"
21
+ metrics:
22
+ prometheus:
23
+ entryPoint: metrics
22
24
service:
23
25
enabled: true
24
26
type: NodePort
25
27
EOF
26
28
27
29
kubectl -n traefik rollout status deployment/traefik
28
30
kubectl -n traefik get all
31
+ kubectl -n traefik get deployment/traefik -oyaml
32
+ kubectl -n traefik get service/traefik -oyaml
29
33
30
34
echo ' >>> Installing Flagger'
31
35
helm upgrade -i flagger ${REPO_ROOT} /charts/flagger \
You can’t perform that action at this time.
0 commit comments