apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: edgedevice-plate-reader-deployment
  name: edgedevice-plate-reader-deployment
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: edgedevice-plate-reader-deployment
  template:
    metadata:
      labels:
        app: edgedevice-plate-reader-deployment
    spec:
      containers:
      - image: edgehub/deviceshifu-http:v0.0.1
        name: deviceshifu-http
        ports:
        - containerPort: 8080
        volumeMounts:
        - name: edgedevice-config
          mountPath: "/etc/edgedevice/config"
          readOnly: true
        env:
        - name: EDGEDEVICE_NAME
          value: "edgedevice-plate-reader"
        - name: EDGEDEVICE_NAMESPACE
          value: "devices"
      volumes:
      - name: edgedevice-config
        configMap:
          name: plate-reader-configmap-0.0.1
      serviceAccountName: edgedevice-mockdevice-sa
