Service Mesh (Red Hat OpenShift Service Mesh)

구성 요소

주요 기능

핵심 리소스 : Gateway, VirtualService, DestinationRule, PeerAuthentication, AuthorizationPolicy

apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata: {name: mysvc}
spec:
  host: mysvc.okd-lab.svc.cluster.local
  subsets:
  - name: v1
    labels: {version: v1}
  - name: v2
    labels: {version: v2}
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata: {name: mysvc}
spec:
  hosts: ["mysvc"]
  http:
  - route:
    - destination: {host: mysvc, subset: v1}  weight: 80
    - destination: {host: mysvc, subset: v2}  weight: 20