From 0d2163cd94e35e5bb31fa0167c1eb6695505d196 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 4 Jan 2021 11:31:37 +0200 Subject: [PATCH] e2e: Expose traefik as NodePort Signed-off-by: Stefan Prodan --- test/traefik/install.sh | 3 +++ test/traefik/test-canary.sh | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/traefik/install.sh b/test/traefik/install.sh index 62ce237c..ff9fab41 100755 --- a/test/traefik/install.sh +++ b/test/traefik/install.sh @@ -19,6 +19,9 @@ deployment: podAnnotations: "prometheus.io/port": "9000" "prometheus.io/scrape": "true" +service: + enabled: true + type: NodePort EOF kubectl -n traefik rollout status deployment/traefik diff --git a/test/traefik/test-canary.sh b/test/traefik/test-canary.sh index 8847bda9..b81693b6 100755 --- a/test/traefik/test-canary.sh +++ b/test/traefik/test-canary.sh @@ -17,7 +17,7 @@ spec: entryPoints: - web routes: - - match: Host(`app.example.com`) + - match: Host(\`app.example.com\`) kind: Rule services: - name: podinfo @@ -47,7 +47,7 @@ spec: annotations: test: test-annotation analysis: - interval: 60s + interval: 15s threshold: 15 maxWeight: 60 stepWeight: 10 @@ -76,6 +76,7 @@ spec: metadata: type: bash cmd: "curl -sd 'test' -H 'Host: app.example.com' http://traefik.traefik/token | grep token" + logCmdOutput: "true" - name: load-test url: http://flagger-loadtester.test/ timeout: 5s