Multiple port canary: fix FAQ and add e2e tests

This commit is contained in:
Félix Cantournet 2019-08-02 14:23:58 +02:00
parent 0ca48d77be
commit 6651f6452b
3 changed files with 9 additions and 3 deletions

View File

@ -232,8 +232,7 @@ spec:
mode: ISTIO_MUTUAL mode: ISTIO_MUTUAL
``` ```
Both port `8080` and `9090` will be added to the ClusterIP services but the virtual service Both port `8080` and `9090` will be added to the ClusterIP services.
will point to the port specified in `spec.service.port`.
### Label selectors ### Label selectors

View File

@ -33,6 +33,7 @@ spec:
progressDeadlineSeconds: 60 progressDeadlineSeconds: 60
service: service:
port: 9898 port: 9898
portDiscovery: true
headers: headers:
request: request:
add: add:
@ -142,6 +143,7 @@ spec:
name: podinfo name: podinfo
progressDeadlineSeconds: 60 progressDeadlineSeconds: 60
service: service:
portDiscovery: true
port: 9898 port: 9898
canaryAnalysis: canaryAnalysis:
interval: 10s interval: 10s
@ -202,4 +204,4 @@ echo '✔ A/B testing promotion test passed'
kubectl -n istio-system logs deployment/flagger kubectl -n istio-system logs deployment/flagger
echo '✔ All tests passed' echo '✔ All tests passed'

View File

@ -20,6 +20,7 @@ spec:
metadata: metadata:
annotations: annotations:
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
prometheus.io/port: "9797"
labels: labels:
app: podinfo app: podinfo
spec: spec:
@ -31,9 +32,13 @@ spec:
- containerPort: 9898 - containerPort: 9898
name: http name: http
protocol: TCP protocol: TCP
- containerPort: 9797
name: http-prom
protocol: TCP
command: command:
- ./podinfo - ./podinfo
- --port=9898 - --port=9898
- --port-metrics=9797
- --level=info - --level=info
- --random-delay=false - --random-delay=false
- --random-error=false - --random-error=false