e2e: Update Traefik to 2.4.9

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2021-07-27 11:16:21 +03:00
parent e6b5ee2042
commit c1b1d7d448

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 \