e2e: Expose traefik as NodePort

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2021-01-04 11:31:37 +02:00
parent 371e177ff3
commit 0d2163cd94
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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