Skip to content

Instantly share code, notes, and snippets.

@shubhaat
Created July 11, 2018 23:28
Show Gist options
  • Save shubhaat/13cc9651d4ff3a678d64ea4526d57437 to your computer and use it in GitHub Desktop.
Save shubhaat/13cc9651d4ff3a678d64ea4526d57437 to your computer and use it in GitHub Desktop.
I could create both of these virtual services applied to the same host reviews. But there is no way to check which was the virtual services that is actually applied.
Shubhas-MacBook-Pro-2:istio-0.8.0 sanjurtupil$ istioctl get virtualservice reviews3 -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: reviews3
namespace: default
resourceVersion: "33199"
spec:
hosts:
- reviews
http:
- route:
- destination:
host: reviews
subset: v1
weight: 99
---
and
Shubhas-MacBook-Pro-2:istio-0.8.0 sanjurtupil$ istioctl get virtualservice reviews1 -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: reviews1
namespace: default
resourceVersion: "6236"
spec:
hosts:
- reviews
http:
- route:
- destination:
host: reviews
subset: v1
weight: 80
---
I could create both of these virtual services applied to the same host reviews. But there is no way to check which was the virtual services that is actually applied.
Shubhas-MacBook-Pro-2:istio-0.8.0 sanjurtupil$ istioctl get virtualservice reviews3 -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: reviews3
namespace: default
resourceVersion: "33199"
spec:
hosts:
- reviews
http:
- route:
- destination:
host: reviews
subset: v1
weight: 99
---
and
Shubhas-MacBook-Pro-2:istio-0.8.0 sanjurtupil$ istioctl get virtualservice reviews1 -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: reviews1
namespace: default
resourceVersion: "6236"
spec:
hosts:
- reviews
http:
- route:
- destination:
host: reviews
subset: v1
weight: 80
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment