Skip to content

Commit

Permalink
Multiple port canary: fix FAQ and add e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fcantournet committed Aug 2, 2019
1 parent 0ca48d7 commit 6651f64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/gitbook/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ spec:
mode: ISTIO_MUTUAL
```

Both port `8080` and `9090` will be added to the ClusterIP services but the virtual service
will point to the port specified in `spec.service.port`.
Both port `8080` and `9090` will be added to the ClusterIP services.

### Label selectors

Expand Down
4 changes: 3 additions & 1 deletion test/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
progressDeadlineSeconds: 60
service:
port: 9898
portDiscovery: true
headers:
request:
add:
Expand Down Expand Up @@ -142,6 +143,7 @@ spec:
name: podinfo
progressDeadlineSeconds: 60
service:
portDiscovery: true
port: 9898
canaryAnalysis:
interval: 10s
Expand Down Expand Up @@ -202,4 +204,4 @@ echo '✔ A/B testing promotion test passed'

kubectl -n istio-system logs deployment/flagger

echo '✔ All tests passed'
echo '✔ All tests passed'
5 changes: 5 additions & 0 deletions test/e2e-workload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9797"
labels:
app: podinfo
spec:
Expand All @@ -31,9 +32,13 @@ spec:
- containerPort: 9898
name: http
protocol: TCP
- containerPort: 9797
name: http-prom
protocol: TCP
command:
- ./podinfo
- --port=9898
- --port-metrics=9797
- --level=info
- --random-delay=false
- --random-error=false
Expand Down

0 comments on commit 6651f64

Please sign in to comment.