apiVersion: apps/v1 kind: Deployment metadata: name: checkout labels: app.kubernetes.io/created-by: eks-workshop app.kubernetes.io/type: app spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: checkout app.kubernetes.io/instance: checkout app.kubernetes.io/component: service template: metadata: annotations: prometheus.io/path: /metrics prometheus.io/port: "8080" prometheus.io/scrape: "true" labels: app.kubernetes.io/name: checkout app.kubernetes.io/instance: checkout app.kubernetes.io/component: service app.kubernetes.io/created-by: eks-workshop spec: serviceAccountName: checkout securityContext: fsGroup: 1000 containers: - name: checkout envFrom: - configMapRef: name: checkout securityContext: capabilities: drop: - ALL readOnlyRootFilesystem: true image: "public.ecr.aws/aws-containers/retail-store-sample-checkout:0.4.0" imagePullPolicy: IfNotPresent ports: - name: http containerPort: 8080 protocol: TCP livenessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 30 periodSeconds: 3 resources: limits: memory: 512Mi requests: cpu: 250m memory: 512Mi volumeMounts: - mountPath: /tmp name: tmp-volume volumes: - name: tmp-volume emptyDir: medium: Memory