name: Deployment Web
services:
  Backend:
    name: Backend
    type: ServiceEntry
    apiVersion: networking.istio.io/v1beta1
    namespace: default
    version: v1.27.2
    model: kubernetes
    settings:
      spec:
        hosts:
        - backend
        location: MESH_INTERNAL
        ports:
        - name: http
          number: 80
          protocol: HTTP
    traits:
      meshmap:
        edges: []
        id: 04bb97a4-ba4b-4fde-89b2-c9436f62a108
        label: Backend
        meshmodel-data:
          category:
            metadata: null
            name: Orchestration & Management
          displayName: Kubernetes
          metadata: {}
          name: kubernetes
          version: v1.27.2
        meshmodel-metadata:
          isCustomResource: true
          isNamespaced: true
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: circle
          styleOverrides:
            z-index: 3
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/apiservice-color.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/apiservice-white.svg
        position:
          posX: 10
          posY: 210
        whiteboardData:
          style:
            z-index: 4
  backend-to-database:
    name: backend-to-database
    type: VirtualService
    apiVersion: networking.istio.io/v1beta1
    namespace: default
    version: v1.27.2
    model: kubernetes
    settings:
      spec:
        hosts:
        - backend
        http:
        - route:
          - destination:
              host: database
              port:
                number: 3306
    traits:
      meshmap:
        edges: []
        id: 48d52b7d-23c1-4004-9d4e-87180180fff8
        label: backend-to-database
        meshmodel-data:
          category:
            metadata: null
            name: Orchestration & Management
          displayName: Kubernetes
          metadata: {}
          name: kubernetes
          version: v1.27.2
        meshmodel-metadata:
          isCustomResource: true
          isNamespaced: true
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: circle
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/apiservice-color.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/apiservice-white.svg
        position:
          posX: -30
          posY: 150
        whiteboardData:
          style:
            z-index: 5
  database:
    name: database
    type: ServiceEntry
    apiVersion: networking.istio.io/v1beta1
    namespace: default
    version: v1.27.2
    model: kubernetes
    settings:
      spec:
        hosts:
        - database
        location: MESH_INTERNAL
        ports:
        - name: mysql
          number: 3306
          protocol: TCP
    traits:
      meshmap:
        edges: []
        id: e158850a-5d24-4cd8-9dd7-6d7654608281
        label: database
        meshmodel-data:
          category:
            metadata: null
            name: Orchestration & Management
          displayName: Kubernetes
          metadata: {}
          name: kubernetes
          version: v1.27.2
        meshmodel-metadata:
          isCustomResource: true
          isNamespaced: true
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: circle
          styleOverrides:
            z-index: 5
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/apiservice-color.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/apiservice-white.svg
        position:
          posX: -30
          posY: 210
        whiteboardData:
          style:
            z-index: 6
  frontend:
    name: frontend
    type: ServiceEntry
    apiVersion: networking.istio.io/v1beta1
    namespace: default
    version: v1.27.2
    model: kubernetes
    settings:
      spec:
        hosts:
        - frontend
        location: MESH_INTERNAL
        ports:
        - name: http
          number: 80
          protocol: HTTP
    traits:
      meshmap:
        edges: []
        id: 568a066c-e221-44f0-9f46-c20698e9e695
        label: frontend
        meshmodel-data:
          category:
            metadata: null
            name: Orchestration & Management
          displayName: Kubernetes
          metadata: {}
          name: kubernetes
          version: v1.27.2
        meshmodel-metadata:
          isCustomResource: true
          isNamespaced: true
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: circle
          styleOverrides:
            z-index: 6
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/apiservice-color.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/apiservice-white.svg
        position:
          posX: 70
          posY: 210
        whiteboardData:
          style:
            z-index: 7
  frontend-to-backend:
    name: frontend-to-backend
    type: VirtualService
    apiVersion: networking.istio.io/v1beta1
    namespace: default
    version: v1.27.2
    model: kubernetes
    settings:
      spec:
        hosts:
        - frontend
        http:
        - route:
          - destination:
              host: backend
              port:
                number: 80
    traits:
      meshmap:
        edges: []
        id: fc8d8131-0f79-4a3a-8480-5c83228144fa
        label: frontend-to-backend
        meshmodel-data:
          category:
            metadata: null
            name: Orchestration & Management
          displayName: Kubernetes
          metadata: {}
          name: kubernetes
          version: v1.27.2
        meshmodel-metadata:
          isCustomResource: true
          isNamespaced: true
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: circle
          styleOverrides:
            z-index: 4
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/apiservice-color.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/apiservice-white.svg
        position:
          posX: 30
          posY: 150
        whiteboardData:
          style:
            z-index: 3
