apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: labelbot-diff
  name: labelbot-diff
  namespace: label-bot-prod
spec:
  replicas: 1
  selector:
    matchLabels:
      app: labelbot-diff
  template:
    metadata:
      labels:
        app: labelbot-diff
    spec:
      containers:
      - command:
        - /automl
        - serve
        - --kptFile=/src/code-intelligence.git/Label_Microservice/deployment/Kptfile
        - --port=8080
        - --retrainInterval=24h
        image: gcr.io/issue-label-bot-dev/labelbot-diff:63789ef@sha256:9a93e576825c65b1062424869ce93d47d90fed9117891dd95e31eeb57e878a90
        name: diff
        ports:
        - containerPort: 8080
        volumeMounts:
        - mountPath: /src
          name: src
      - args:
        - --repo=https://github.com/kubeflow/code-intelligence.git
        - --branch=master
        - --root=/src
        - --wait=30
        image: k8s.gcr.io/git-sync:v3.1.6
        name: sync
        volumeMounts:
        - mountPath: /src
          name: src
      serviceAccount: auto-update
      volumes:
      - emptyDir: {}
        name: src
