 apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: menu-item
   namespace: default
   labels:
     app: menu-item
 spec:
   replicas: 3
   selector:
     matchLabels:
       app: menu-item
   template:
     metadata:
       labels:
         app: menu-item
       annotations: # Annoations used for Enterprise Suite Metrics
         "prometheus.io/scrape": "true"
         "prometheus.io/scheme": "http"
         "prometheus.io/path": "/metrics"
         "prometheus.io/port": "9001"
     spec:
       serviceAccountName: menu-item-sa
       containers:
       - name: menu-item
         image: menu-item-impl:1.0-SNAPSHOT
         ports:
         - name: http
           containerPort: 9000
         - name: akka-mgmt-http
           containerPort: 8558
         - name: prometheus # Used for Enterprise Suite Metrics
           containerPort: 9001
         envFrom:
         - configMapRef:
             name: menu-item-config
         env:
           - name: "JAVA_OPTS"
             value: "-Dconfig.resource=application.prod.conf -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dpidfile.path=/dev/null"
         resources:
           requests:
             memory: "256Mi"
             cpu: "100m"
           limits:
             memory: "1Gi"
         readinessProbe:
           httpGet:
             path: /ready
             port: akka-mgmt-http
           initialDelaySeconds: 10
           periodSeconds: 5
         livenessProbe:
           httpGet:
             path: /alive
             port: akka-mgmt-http
           initialDelaySeconds: 90
           periodSeconds: 30
