I am testing some traffic management concepts using https://github.com/istio/istio/tree/master/samples/helloworld as an example on istio-1.1.0 on k8s cluster which has PSP enabled but seems as if either my destinationrules or virtual services are not working. After debugging using
istioctl proxy-config routes I am able to to see the correct route but when I actually hit the service i don’t see the rules being applied.
These are my virtualservice and destinationrules
apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: helloworld-vs spec: hosts: - helloworld http: - route: - destination: host: helloworld subset: v2 --- apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata: name: helloworld spec: host: helloworld subsets: - name: v1 labels: version: v1 - name: v2 labels: version: v2 ---
One thing to note is that we have PSP enabled on this cluster and it is an on-prem cluster.