This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: microservice-virtual-service | |
namespace: traffic-management | |
spec: | |
hosts: | |
- traffic-management.retailvoice.xyz #allowed host | |
gateways: | |
- traffic-management/ingressgateway # list of gateway from which we will be getting request forwarded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: user-virtual-service #self explanatory | |
namespace: traffic-management #self explanatory | |
spec: | |
hosts: # a virtual service can redirect requests for multiple hosts. this is more of a filtering hosts | |
- user.traffic-management.retailvoice.xyz | |
gateways: # a virtual service can also received requests from multiple gateway | |
- traffic-management/ingressgateway # always safe to access with namespaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: microservice-virtual-service | |
namespace: traffic-management | |
spec: | |
hosts: | |
- traffic-management.retailvoice.xyz #allowed host | |
gateways: | |
- traffic-management/ingressgateway # list of gateway from which we will be getting request forwarded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: user-virtual-service #self explanatory | |
namespace: traffic-management #self explanatory | |
spec: | |
hosts: # a virtual service can redirect requests for multiple hosts. this is more of a filtering hosts | |
- user.traffic-management.retailvoice.xyz | |
gateways: # a virtual service can also received requests from multiple gateway | |
- traffic-management/ingressgateway # always safe to access with namespaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: user-deployment # make sure the name of two deployment to be different | |
namespace: traffic-management # setting namespace to default | |
labels: | |
app: user | |
spec: | |
replicas: 1 #setting replica count to 1 | |
selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: microservice-virtual-service | |
namespace: default | |
spec: | |
hosts: | |
- microservice.retailvoice.xyz #allowed host | |
gateways: | |
- ingressgateway # list of gateway from which we will be getting request forwarded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: product-virtual-service | |
namespace: default | |
spec: | |
hosts: | |
- product.microservice.retailvoice.xyz | |
gateways: | |
- ingressgateway |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: user-virtual-service #self explanatory | |
namespace: default #self explanatory | |
spec: | |
hosts: # a virtual service can redirect requests for multiple hosts. this is more of a filtering hosts | |
- user.microservice.retailvoice.xyz | |
gateways: # a virtual service can also received requests from multiple gateway | |
- ingressgateway |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: ingressgateway #self explanatory | |
namespace: default #self explantory | |
spec: | |
servers: # can have multiple server configuration | |
- port: # this configuration actually means that we will be allow http connection on port 80 for 3 domains which are listed under hosts | |
number: 80 | |
name: http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: product-deployment | |
labels: | |
app: product | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: |