apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: packt-beam
  name: packt-beam
spec:
  replicas: 1
  selector:
    matchLabels:
      app: packt-beam
  template:
    metadata:
      labels:
        app: packt-beam
    spec:
      containers:
      - image: packt-beam
        imagePullPolicy: Never
        name: packt-beam
        volumeMounts:
        - name: docker-sock
          mountPath: /var/run/docker.sock
      volumes:
      - name: docker-sock
        hostPath:
          path: /var/run/docker.sock
          type: Socket

