apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  labels:
    run: zbot
  name: zbot
  namespace: csoohoo
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      run: zbot
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      labels:
        run: zbot
    spec:
      containers:
      - command:
        - ./web_detections_main
        image: docker-registry.zooxlabs.com/csoohoo/zbot:13
        imagePullPolicy: IfNotPresent
        name: zbotdetector
        resources:
          limits:
            nvidia.com/gpu: "1"
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      - command:
        - npm
        - start
        image: docker-registry.zooxlabs.com/csoohoo/zbot:13
        imagePullPolicy: IfNotPresent
        name: zbotslack
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
