apiVersion: v1
kind: ReplicationController
metadata:
  name: nodejs-jenkernetes-slave
spec:
  template:
    metadata:
      name: jenkins-nodejs-slave
      labels:
        role: slave
        language: nodejs
    spec:
        containers:
          -
            name: jenkins-nodejs-slave
            image: waprin/jenkernetes-nodejs
            imagePullPolicy: Always
            volumeMounts:
              - mountPath: /var/run/docker.sock
                name: docker-sock
              - mountPath: /usr/bin/docker
                name: docker-bin
              - mountPath: /tmp
                name: docker-tmp
        volumes:
          - name: docker-sock
            hostPath:
              path: /var/run/docker.sock
          - name: docker-bin
            hostPath:
              path: /usr/bin/docker
          - name: docker-tmp
            hostPath:
              path: /tmp
