apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    description: Asynchronous indexing for global references.
  labels:
    deploy: sourcegraph
  name: indexer
spec:
  minReadySeconds: 10
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: indexer
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: indexer
    spec:
      containers:
      - env:
        - name: LSP_PROXY
          value: lsp-proxy:4388
        image: sourcegraph/indexer:3.0.0-alpha.4@sha256:bcfd2518cc7df61d6344beac98d77fda88f33401d1106861cd855802931b023f
        name: indexer
        ports:
        - containerPort: 3179
          name: http
        resources:
          limits:
            cpu: "1"
            memory: 1G
          requests:
            cpu: 100m
            memory: 250M
      securityContext:
        runAsUser: 0
