apiVersion: apps/v1
kind: Deployment
metadata:
  name: buildbot
  namespace: newbots
  labels:
    app: buildbot
spec:
  replicas: 1
  selector: 
    matchLabels:
      app: buildbot
  template:
    metadata:
      labels:
        app: buildbot
    spec:
      hostNetwork: true
      containers:
      - name: buildbot
        image: hub.pingcap.net/schrodinger/buildbot
        ports:
        - containerPort: 28082
        resources:
          requests:
            memory: "100Mi"
        volumeMounts:
            - mountPath: /var/run/docker.sock
              name: docker-sock
            - mountPath: /usr/bin/docker
              name: docker-bin
      volumes:
        - name: docker-sock
          hostPath:
              path: /var/run/docker.sock
        - name: docker-bin
          hostPath:
              path: /bin/docker