Add target port number to Gloo e2e tests

Update Gloo to v0.20.2
Enable Gloo discovery Fix: #328
This commit is contained in:
stefanprodan
2019-10-07 09:34:23 +03:00
parent 2e79817437
commit b5fb7cdae5
2 changed files with 17 additions and 5 deletions
+14 -3
View File
@@ -27,7 +27,7 @@ metadata:
spec:
virtualHost:
domains:
- '*'
- app.example.com
name: podinfo
routes:
- matcher:
@@ -36,6 +36,9 @@ spec:
upstreamGroup:
name: podinfo
namespace: test
routePlugins:
prefixRewrite:
prefixRewrite: "/"
EOF
cat <<EOF | kubectl apply -f -
@@ -52,7 +55,8 @@ spec:
name: podinfo
progressDeadlineSeconds: 60
service:
port: 9898
port: 80
targetPort: 9898
canaryAnalysis:
interval: 15s
threshold: 15
@@ -72,7 +76,14 @@ spec:
timeout: 10s
metadata:
type: bash
cmd: "curl -sd 'test' http://podinfo-canary:9898/token | grep token"
cmd: "curl -sd 'test' http://podinfo-canary/token | grep token"
- name: gloo-acceptance-test
type: pre-rollout
url: http://flagger-loadtester.test/
timeout: 10s
metadata:
type: bash
cmd: "curl -sd 'test' -H 'Host: app.example.com' http://gateway-proxy-v2.gloo-system/token | grep token"
- name: load-test
url: http://flagger-loadtester.test/
timeout: 5s
+3 -2
View File
@@ -2,14 +2,15 @@
set -o errexit
GLOO_VER="0.18.8"
GLOO_VER="0.20.2"
REPO_ROOT=$(git rev-parse --show-toplevel)
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
echo '>>> Installing Gloo'
helm repo add gloo https://storage.googleapis.com/solo-public-helm
helm upgrade -i gloo gloo/gloo --version ${GLOO_VER} \
--namespace gloo-system
--namespace gloo-system \
--set discovery.enabled=true
kubectl -n gloo-system rollout status deployment/gloo
kubectl -n gloo-system rollout status deployment/gateway-proxy-v2