apiVersion: apps/v1
kind: Deployment
metadata:
  name: cruiser-deployment-pi
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cruiser
  template:
    metadata:
      labels:
        app: cruiser
    spec:
      hostNetwork: true
      containers:
      - name: cruiser-container
        image: registry.cn-beijing.aliyuncs.com/freebuf/cruiser:v0.1
        imagePullPolicy: Always
        securityContext:
          privileged: true
        volumeMounts:
        - name: config-volume
          mountPath: /opt/kubeedge
      volumes:
      - name: config-volume
        configMap:
          name: device-profile-config-edge-pi
      restartPolicy: Always
      imagePullSecrets:
      - name: kubeedgesecret
