istio / old_issues_repo

Deprecated issue-tracking repo, please post new issues or feature requests to istio/istio instead.
37 stars 9 forks source link

VirtualService not available #291

Closed fudali113 closed 6 years ago

fudali113 commented 6 years ago

Is this a BUG or FEATURE REQUEST?: BUG

Did you review https://istio.io/help/ and existing issues to identify if this is already solved or being worked on?:yes

Bug: Y

What Version of Istio and Kubernetes are you using, where did you get Istio from, Installation details

istioctl version

[mike@k8s-node0 root]$ istioctl version
Version: 0.7.1
GitRevision: 62110d4f0373a7613e57b8a4d559ded9cb6a1cc8
User: root@c5207293dc14
Hub: docker.io/istio
GolangVersion: go1.9
BuildStatus: Clean

kubectl version

Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T12:22:21Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

Is Istio Auth enabled or not ? Did you install the stable istio.yaml, istio-auth.yaml.... or if using the Helm chart please provide full command line input. istio.yaml

What happened: i learn Traffic Shifting i am run bookinfo and exec istioctl create -f samples/bookinfo/routing/route-rule-all-v1.yaml

[mike@k8s-node0 root]$ kubectl get po 
NAME                              READY     STATUS    RESTARTS   AGE
details-v1-6d989f9666-79d56       2/2       Running   0          16m
productpage-v1-7bbb998d94-vvttc   2/2       Running   0          16m
ratings-v1-65444fc4cd-nk8d6       2/2       Running   0          16m
reviews-v1-5f94d8d6d-bddb7        2/2       Running   0          16m
reviews-v2-6b677d65b6-6ksjj       2/2       Running   0          16m
reviews-v3-b6d779fcb-4drmk        2/2       Running   0          16m
[mike@k8s-node0 root]$ istioctl get virtualservices -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  creationTimestamp: null
  name: details
  namespace: default
  resourceVersion: "4665992"
spec:
  hosts:
  - details
  http:
  - route:
    - destination:
        name: details
        subset: v1
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  creationTimestamp: null
  name: productpage
  namespace: default
  resourceVersion: "4665989"
spec:
  gateways:
  - bookinfo
  - mesh
  hosts:
  - productpage
  http:
  - route:
    - destination:
        name: productpage
        subset: v1
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  creationTimestamp: null
  name: ratings
  namespace: default
  resourceVersion: "4665991"
spec:
  hosts:
  - ratings
  http:
  - route:
    - destination:
        name: ratings
        subset: v1
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  creationTimestamp: null
  name: reviews
  namespace: default
  resourceVersion: "4665990"
spec:
  hosts:
  - reviews
  http:
  - route:
    - destination:
        name: reviews
        subset: v1
---

but Access the product page looks like this: image

What you expected to happen: product page don`t have star

How to reproduce it: use istio 0.7.1 run

kubectl apply -f <(istioctl kube-inject --debug -f samples/bookinfo/kube/bookinfo.yaml)
istioctl create -f samples/bookinfo/routing/route-rule-all-v1.yaml

Feature Request: Y/N

Describe the feature:

andraxylia commented 6 years ago

This should work in 0.8.