Merge pull request #960 from fluxcd/traefik-2.4

e2e: Update Traefik to 2.4.9
This commit is contained in:
Stefan Prodan
2021-07-27 12:56:41 +03:00
committed by GitHub
2 changed files with 21 additions and 9 deletions
@@ -13,9 +13,17 @@ Install Traefik with Helm v3:
```bash
helm repo add traefik https://helm.traefik.io/traefik
kubectl create ns traefik
helm upgrade -i traefik traefik/traefik \
--namespace traefik \
--set additionalArguments="{--metrics.prometheus=true}"
cat <<EOF | helm upgrade -i traefik traefik/traefik --namespace traefik -f -
deployment:
podAnnotations:
prometheus.io/port: "9100"
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
metrics:
prometheus:
entryPoint: metrics
EOF
```
Install Flagger and the Prometheus add-on in the same namespace as Traefik:
+10 -6
View File
@@ -2,7 +2,7 @@
set -o errexit
TRAEFIK_CHART_VERSION="9.11.0" # traefik 2.3.3
TRAEFIK_CHART_VERSION="10.1.1" # traefik 2.4.9
REPO_ROOT=$(git rev-parse --show-toplevel)
mkdir -p ${REPO_ROOT}/bin
@@ -12,13 +12,15 @@ kubectl create ns traefik
echo '>>> Installing Traefik'
helm repo add traefik https://helm.traefik.io/traefik
cat <<EOF | helm upgrade -i traefik traefik/traefik --version=${TRAEFIK_VERSION} --namespace traefik -f -
additionalArguments:
- "--metrics.prometheus=true"
cat <<EOF | helm upgrade -i traefik traefik/traefik --version=${TRAEFIK_CHART_VERSION} --wait --namespace traefik -f -
deployment:
podAnnotations:
"prometheus.io/port": "9000"
"prometheus.io/scrape": "true"
prometheus.io/port: "9100"
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
metrics:
prometheus:
entryPoint: metrics
service:
enabled: true
type: NodePort
@@ -26,6 +28,8 @@ EOF
kubectl -n traefik rollout status deployment/traefik
kubectl -n traefik get all
kubectl -n traefik get deployment/traefik -oyaml
kubectl -n traefik get service/traefik -oyaml
echo '>>> Installing Flagger'
helm upgrade -i flagger ${REPO_ROOT}/charts/flagger \