apiVersion: apps/v1 kind: Deployment metadata: name: assets labels: app.kubernetes.io/created-by: eks-workshop app.kubernetes.io/type: app spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: assets app.kubernetes.io/instance: assets 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: assets app.kubernetes.io/instance: assets app.kubernetes.io/component: service app.kubernetes.io/created-by: eks-workshop spec: serviceAccountName: assets securityContext: {} containers: - name: assets envFrom: - configMapRef: name: assets securityContext: capabilities: drop: - ALL readOnlyRootFilesystem: false image: "public.ecr.aws/aws-containers/retail-store-sample-assets:0.4.0" imagePullPolicy: IfNotPresent ports: - name: http containerPort: 8080 protocol: TCP livenessProbe: httpGet: path: /health.html port: 8080 periodSeconds: 3 resources: limits: memory: 128Mi requests: cpu: 128m memory: 128Mi volumeMounts: - mountPath: /tmp name: tmp-volume volumes: - name: tmp-volume emptyDir: medium: Memory