apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    description: LSP server for Python (used for background indexing jobs).
  labels:
    deploy: xlang-python
  name: xlang-python-bg
spec:
  minReadySeconds: 10
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: xlang-python-bg
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: xlang-python-bg
    spec:
      containers:
      - image: sourcegraph/xlang-python:18892_2018-07-27_ddc9943@sha256:9298d1fb295ab2fa2e9a687e0de3421e38344735bfec198ae39c4036e9833f1f
        livenessProbe:
          initialDelaySeconds: 5
          tcpSocket:
            port: lsp
          timeoutSeconds: 5
        name: xlang-python-bg
        ports:
        - containerPort: 2087
          name: lsp
        readinessProbe:
          tcpSocket:
            port: lsp
        resources:
          limits:
            cpu: 500m
            memory: 1G
          requests:
            cpu: 500m
            memory: 1G
