apiVersion: apps/v1
kind: Deployment
metadata:
  name: judger-deployment
spec:
  selector:
    matchLabels:
      app: judger
  replicas: 2
  template:
    metadata:
      labels:
        app: judger
    spec:
      containers:
        - name: judger
          image: rabbitoj:latest # should give a public image url
          imagePullPolicy: IfNotPresent # if latest is specified, should set to `Always`
          env:
            - name: Role
              value: "Judge"
          volumeMounts:
            - name: dockersock
              mountPath: "/var/run/docker.sock"
      volumes:
      - name: dockersock
        hostPath:
          path: "/var/run/docker.sock"