name: Cloud native pizza store
services:
  kvstore:
    name: kvstore
    type: Component
    apiVersion: dapr.io/v1alpha1
    namespace: default
    model: dapr
    settings:
      spec:
        metadata:
        - name: connectionString
          value: host=postgresql.default.svc.cluster.local user=postgres password=postgres
            port=5432 connect_timeout=10 database=dapr
        type: state.postgresql
        version: v1
    traits:
      meshmap:
        edges: []
        id: 5ee5fca9-c558-45ae-8a79-a77cc5d3dea3
        meshmodel-metadata:
          capabilities: ""
          defaultData: ""
          genealogy: ""
          isAnnotation: false
          isModelAnnotation: "FALSE"
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/examples/incubating.md#dapr-logos
          model: dapr
          modelDisplayName: Dapr
          primaryColor: '#0d2192'
          secondaryColor: '#5266D7'
          shape: circle
          shapePolygonPoints: ""
          status: enabled
          styleOverrides:
            z-index: 4
          styles: ""
          subCategory: ""
          svgColor: ui/public/static/img/meshmodels/dapr/color/component-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/dapr/white/component-white.svg
        position:
          posX: 84
          posY: 91
        whiteboardData:
          style: {}
  pizza-delivery-deployment:
    name: pizza-delivery-deployment
    type: Deployment
    apiVersion: apps/v1
    namespace: default
    model: kubernetes
    settings:
      spec:
        selector:
          match Labels:
            app: pizza-delivery-service
        template:
          metadata:
            annotations:
              dapr.io/app-id: delivery-service
              dapr.io/app-port: "8080"
              dapr.io/enabled: "true"
              dapr.io/log-level: debug
            labels:
              app: pizza-delivery-service
              app.kubernetes.io/name: pizza-delivery-service
              app.kubernetes.io/part-of: pizza-delivery-service
              app.kubernetes.io/version: 0.1.0
          spec:
            containers:
            - env:
              - name: JAVA_OPTS
                value: -XX:+UseParallelGC -XX:ActiveProcessorCount=1 -XX:MaxRAMPercentage=75
                  -XX:TieredStopAtLevel=1
              - name: PUB_SUB_NAME
                value: pubsub
              - name: PUB_SUB_TOPIC
                value: topic
              image: salaboy/pizza-delivery:0.1.0
              image Pull Policy: Always
              liveness Probe:
                http Get:
                  path: /actuator/health
                  port: 8080
              name: pizza-delivery-service
              ports:
              - container Port: 8080
              readiness Probe:
                http Get:
                  path: /actuator/health
                  port: 8080
              resources:
                limits:
                  cpu: "1"
                  memory: 2Gi
                requests:
                  cpu: "1"
                  memory: 2Gi
    traits:
      meshmap:
        edges:
        - data:
            id: 653d8623-2ccb-48cb-af64-98e789dc935c
            metadata:
              port: 80
              protocol: TCP
            source: 3d9b0dd5-802d-4d09-9ebc-7583f24ff682
            subType: Network
            target: b37fdad5-b49d-40da-a232-ec6cfac2a974
          style:
            control-point-distances: null
            control-point-weights: "0.5"
            curve-style: bezier
            haystack-radius: "0"
            line-color: rgb(153,153,153)
            line-style: dotted
            opacity: "1"
            segment-distances: 20px
            segment-weights: "0.5"
            target-arrow-shape: vee
            taxi-direction: auto
            taxi-turn: 50%
            taxi-turn-min-distance: 10px
            width: 1.5px
        id: b37fdad5-b49d-40da-a232-ec6cfac2a974
        meshmodel-metadata:
          capabilities: |-
            {
              "fieldRefs": [
                {
                  "fieldPath": "spec.template.spec.containers",
                  "jsonSchemaPath": "properties.spec.allOf[0].properties.template.allOf[0].properties.spec.allOf[0].properties.containers.items.allOf[0]",
                  "component": {
                    "kind": "Container",
                    "model": "meshery-core"
                  },
                  "renderChildren": true
                }
              ],
              "designer": {
                "edit": {
                  "shape": {
                    "convert-shape": false
                  }
                }
              }
            }
          defaultData: ""
          genealogy: parent
          isAnnotation: false
          isCustomResource: false
          isModelAnnotation: "FALSE"
          isNamespaced: true
          logoURL: Created by Meshery Authors
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: round-rectangle
          shapePolygonPoints: ""
          status: enabled
          styleOverrides:
            background-opacity: 0.5
            border-width: 2
            z-index: 4
          styles: '{"border-width":2,"background-opacity":0.5}'
          subCategory: ""
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/deployment-color.svg
          svgComplete: ui/public/static/img/meshmodels/kubernetes/complete/deployment-complete.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/deployment-white.svg
        position:
          posX: -63
          posY: -71
        whiteboardData:
          style: {}
  pizza-init-sql:
    name: pizza-init-sql
    type: ConfigMap
    apiVersion: v1
    namespace: default
    model: kubernetes
    settings:
      data:
        init.sql: CREATE DATABASE dapr;
    traits:
      meshmap:
        edges: []
        id: 933dec4f-4d7b-4f71-96aa-b574de3d5398
        meshmodel-metadata:
          capabilities: ""
          defaultData: ""
          genealogy: ""
          isAnnotation: false
          isCustomResource: false
          isModelAnnotation: "FALSE"
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/projects/kubernetes/icon/white/kubernetes-icon-white.svg
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: bottom-round-rectangle
          shapePolygonPoints: ""
          status: enabled
          styleOverrides:
            z-index: 4
          styles: ""
          subCategory: ""
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/configmap-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/configmap-white.svg
        position:
          posX: -20.5
          posY: 91
        whiteboardData:
          style: {}
  pizza-kitchen-deployment:
    name: pizza-kitchen-deployment
    type: Deployment
    apiVersion: apps/v1
    namespace: default
    model: kubernetes
    settings:
      spec:
        selector:
          match Labels:
            app: pizza-kitchen-service
        template:
          metadata:
            annotations:
              dapr.io/app-id: kitchen-service
              dapr.io/app-port: "8080"
              dapr.io/enabled: "true"
              dapr.io/log-level: debug
            labels:
              app: pizza-kitchen-service
              app.kubernetes.io/name: pizza-kitchen-service
              app.kubernetes.io/part-of: pizza-kitchen-service
              app.kubernetes.io/version: 0.1.0
          spec:
            containers:
            - env:
              - name: JAVA_OPTS
                value: -XX:+UseParallelGC -XX:ActiveProcessorCount=1 -XX:MaxRAMPercentage=75
                  -XX:TieredStopAtLevel=1
              - name: PUB_SUB_NAME
                value: pubsub
              - name: PUB_SUB_TOPIC
                value: topic
              image: salaboy/pizza-kitchen:0.1.0
              image Pull Policy: Always
              liveness Probe:
                http Get:
                  path: /actuator/health
                  port: 8080
              name: pizza-kitchen-service
              ports:
              - container Port: 8080
              readiness Probe:
                http Get:
                  path: /actuator/health
                  port: 8080
              resources:
                limits:
                  cpu: "1"
                  memory: 2Gi
                requests:
                  cpu: "1"
                  memory: 2Gi
    traits:
      meshmap:
        edges:
        - data:
            id: 7e887211-c72a-4f4e-ad79-f3af5fb754cd
            metadata:
              port: 80
              protocol: TCP
            source: 3d9b0dd5-802d-4d09-9ebc-7583f24ff682
            subType: Network
            target: ba4a0d81-108e-4777-85fa-ce5dce5a07ce
          style:
            control-point-distances: null
            control-point-weights: "0.5"
            curve-style: bezier
            haystack-radius: "0"
            line-color: rgb(153,153,153)
            line-style: dotted
            opacity: "1"
            segment-distances: 20px
            segment-weights: "0.5"
            target-arrow-shape: vee
            taxi-direction: auto
            taxi-turn: 50%
            taxi-turn-min-distance: 10px
            width: 1.5px
        id: ba4a0d81-108e-4777-85fa-ce5dce5a07ce
        meshmodel-metadata:
          capabilities: |-
            {
              "fieldRefs": [
                {
                  "fieldPath": "spec.template.spec.containers",
                  "jsonSchemaPath": "properties.spec.allOf[0].properties.template.allOf[0].properties.spec.allOf[0].properties.containers.items.allOf[0]",
                  "component": {
                    "kind": "Container",
                    "model": "meshery-core"
                  },
                  "renderChildren": true
                }
              ],
              "designer": {
                "edit": {
                  "shape": {
                    "convert-shape": false
                  }
                }
              }
            }
          defaultData: ""
          genealogy: parent
          isAnnotation: false
          isCustomResource: false
          isModelAnnotation: "FALSE"
          isNamespaced: true
          logoURL: Created by Meshery Authors
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: round-rectangle
          shapePolygonPoints: ""
          status: enabled
          styleOverrides:
            background-opacity: 0.5
            border-width: 2
            z-index: 4
          styles: '{"border-width":2,"background-opacity":0.5}'
          subCategory: ""
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/deployment-color.svg
          svgComplete: ui/public/static/img/meshmodels/kubernetes/complete/deployment-complete.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/deployment-white.svg
        position:
          posX: 48
          posY: -71
        whiteboardData:
          style: {}
  pizza-store:
    name: pizza-store
    type: Service
    apiVersion: v1
    namespace: default
    model: kubernetes
    settings:
      spec:
        ports:
        - port: 80
          target Port: 8080
        selector:
          app: pizza-store-service
    traits:
      meshmap:
        edges:
        - data:
            id: 653d8623-2ccb-48cb-af64-98e789dc935c
            metadata:
              port: 80
              protocol: TCP
            source: 3d9b0dd5-802d-4d09-9ebc-7583f24ff682
            subType: Network
            target: b37fdad5-b49d-40da-a232-ec6cfac2a974
          style:
            control-point-distances: null
            control-point-weights: "0.5"
            curve-style: bezier
            haystack-radius: "0"
            line-color: rgb(153,153,153)
            line-style: dotted
            opacity: "1"
            segment-distances: 20px
            segment-weights: "0.5"
            target-arrow-shape: vee
            taxi-direction: auto
            taxi-turn: 50%
            taxi-turn-min-distance: 10px
            width: 1.5px
        - data:
            id: 7e887211-c72a-4f4e-ad79-f3af5fb754cd
            metadata:
              port: 80
              protocol: TCP
            source: 3d9b0dd5-802d-4d09-9ebc-7583f24ff682
            subType: Network
            target: ba4a0d81-108e-4777-85fa-ce5dce5a07ce
          style:
            control-point-distances: null
            control-point-weights: "0.5"
            curve-style: bezier
            haystack-radius: "0"
            line-color: rgb(153,153,153)
            line-style: dotted
            opacity: "1"
            segment-distances: 20px
            segment-weights: "0.5"
            target-arrow-shape: vee
            taxi-direction: auto
            taxi-turn: 50%
            taxi-turn-min-distance: 10px
            width: 1.5px
        - data:
            id: ae342ebf-2cc8-439e-a8cb-997b9ca74605
            metadata:
              port: 80
              protocol: TCP
            source: 3d9b0dd5-802d-4d09-9ebc-7583f24ff682
            subType: Network
            target: e93d73d3-30c3-4ba1-95ba-68e026b91226
          style:
            control-point-distances: null
            control-point-weights: "0.5"
            curve-style: bezier
            haystack-radius: "0"
            line-color: rgb(153,153,153)
            line-style: dotted
            opacity: "1"
            segment-distances: 20px
            segment-weights: "0.5"
            target-arrow-shape: vee
            taxi-direction: auto
            taxi-turn: 50%
            taxi-turn-min-distance: 10px
            width: 1.5px
        id: 3d9b0dd5-802d-4d09-9ebc-7583f24ff682
        meshmodel-metadata:
          capabilities: ""
          defaultData: ""
          genealogy: ""
          isAnnotation: false
          isCustomResource: false
          isModelAnnotation: "FALSE"
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/projects/kubernetes/icon/white/kubernetes-icon-white.svg
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: round-triangle
          shapePolygonPoints: ""
          status: enabled
          styleOverrides:
            background-position-y: 4.5
            height: 20
            padding: 12
            width: 20
            x: 10px
            "y": 12px
            z-index: 4
          styles: '{"height":20,"width":20,"padding":12,"background-position-y":4.5,"x":"10px","y":"12px"}'
          subCategory: ""
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/service-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/service-white.svg
        position:
          posX: -84.5
          posY: 97
        whiteboardData:
          style: {}
  pizza-store-deployment:
    name: pizza-store-deployment
    type: Deployment
    apiVersion: apps/v1
    namespace: default
    model: kubernetes
    settings:
      spec:
        selector:
          match Labels:
            app: pizza-store-service
        template:
          metadata:
            annotations:
              dapr.io/app-id: pizza-store
              dapr.io/app-port: "8080"
              dapr.io/enabled: "true"
              dapr.io/log-level: debug
            labels:
              app: pizza-store-service
              app.kubernetes.io/name: pizza-store-service
              app.kubernetes.io/part-of: pizza-store-service
              app.kubernetes.io/version: 0.1.0
          spec:
            containers:
            - env:
              - name: JAVA_OPTS
                value: -XX:+UseParallelGC -XX:ActiveProcessorCount=1 -XX:MaxRAMPercentage=75
                  -XX:TieredStopAtLevel=1
              - name: PUBLIC_IP
                value: localhost:8080
              - name: STATESTORE_NAME
                value: kvstore
              image: salaboy/pizza-store:0.1.0
              image Pull Policy: Always
              liveness Probe:
                http Get:
                  path: /actuator/health
                  port: 8080
              name: pizza-store-service
              ports:
              - container Port: 8080
              readiness Probe:
                http Get:
                  path: /actuator/health
                  port: 8080
              resources:
                limits:
                  cpu: "1"
                  memory: 2Gi
                requests:
                  cpu: "1"
                  memory: 2Gi
    traits:
      meshmap:
        edges:
        - data:
            id: ae342ebf-2cc8-439e-a8cb-997b9ca74605
            metadata:
              port: 80
              protocol: TCP
            source: 3d9b0dd5-802d-4d09-9ebc-7583f24ff682
            subType: Network
            target: e93d73d3-30c3-4ba1-95ba-68e026b91226
          style:
            control-point-distances: null
            control-point-weights: "0.5"
            curve-style: bezier
            haystack-radius: "0"
            line-color: rgb(153,153,153)
            line-style: dotted
            opacity: "1"
            segment-distances: 20px
            segment-weights: "0.5"
            target-arrow-shape: vee
            taxi-direction: auto
            taxi-turn: 50%
            taxi-turn-min-distance: 10px
            width: 1.5px
        id: e93d73d3-30c3-4ba1-95ba-68e026b91226
        meshmodel-metadata:
          capabilities: |-
            {
              "fieldRefs": [
                {
                  "fieldPath": "spec.template.spec.containers",
                  "jsonSchemaPath": "properties.spec.allOf[0].properties.template.allOf[0].properties.spec.allOf[0].properties.containers.items.allOf[0]",
                  "component": {
                    "kind": "Container",
                    "model": "meshery-core"
                  },
                  "renderChildren": true
                }
              ],
              "designer": {
                "edit": {
                  "shape": {
                    "convert-shape": false
                  }
                }
              }
            }
          defaultData: ""
          genealogy: parent
          isAnnotation: false
          isCustomResource: false
          isModelAnnotation: "FALSE"
          isNamespaced: true
          logoURL: Created by Meshery Authors
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          secondaryColor: '#7aa1f0'
          shape: round-rectangle
          shapePolygonPoints: ""
          status: enabled
          styleOverrides: '{"border-width":2,"background-opacity":0.5}'
          styles: '{"border-width":2,"background-opacity":0.5}'
          subCategory: ""
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/deployment-color.svg
          svgComplete: ui/public/static/img/meshmodels/kubernetes/complete/deployment-complete.svg
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/deployment-white.svg
        position:
          posX: -68
          posY: 20
        whiteboardData:
          style: {}
  pizza-store-subscritpion:
    name: pizza-store-subscritpion
    type: Subscription
    apiVersion: dapr.io/v1alpha1
    namespace: default
    model: dapr
    settings:
      scopes:
      - pizza-store
      spec:
        pubsubname: pubsub
        route: /events
        topic: topic
    traits:
      meshmap:
        edges: []
        id: 956704f7-674f-4a69-a5a6-84f1cdbf2840
        meshmodel-metadata:
          capabilities: ""
          defaultData: ""
          genealogy: ""
          isAnnotation: false
          isModelAnnotation: "FALSE"
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/examples/incubating.md#dapr-logos
          model: dapr
          modelDisplayName: Dapr
          primaryColor: '#0d2192'
          secondaryColor: '#5266D7'
          shape: circle
          shapePolygonPoints: ""
          status: enabled
          styleOverrides:
            z-index: 4
          styles: ""
          subCategory: ""
          svgColor: ui/public/static/img/meshmodels/dapr/color/component-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/dapr/white/component-white.svg
        position:
          posX: 35.5
          posY: 0
        whiteboardData:
          style: {}
  pubsub:
    name: pubsub
    type: Component
    apiVersion: dapr.io/v1alpha1
    namespace: default
    model: dapr
    settings:
      spec:
        metadata:
        - name: brokers
          value: kafka.default.svc.cluster.local:9092
        - name: authType
          value: none
        type: pubsub.kafka
        version: v1
    traits:
      meshmap:
        edges: []
        id: bd3f552c-3392-4bcd-8bdd-57efd158e148
        meshmodel-metadata:
          capabilities: ""
          defaultData: ""
          genealogy: ""
          isAnnotation: false
          isModelAnnotation: "FALSE"
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/examples/incubating.md#dapr-logos
          model: dapr
          modelDisplayName: Dapr
          primaryColor: '#0d2192'
          secondaryColor: '#5266D7'
          shape: circle
          shapePolygonPoints: ""
          status: enabled
          styleOverrides:
            z-index: 3
          styles: ""
          subCategory: ""
          svgColor: ui/public/static/img/meshmodels/dapr/color/component-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/dapr/white/component-white.svg
        position:
          posX: 37
          posY: 91
        whiteboardData:
          style: {}
