apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    description: LSP server for cpp (used for live requests).
  labels:
    deploy: xlang-cpp
  name: xlang-cpp
spec:
  minReadySeconds: 10
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: xlang-cpp
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: xlang-cpp
    spec:
      containers:
      - image: sourcegraph/codeintel-cpp:00239_2018-05-31_6b6cac4@sha256:63a9b1c49278c6b904172ab510b824cf02778572d4a2f9af878ec72915eacefa
        livenessProbe:
          initialDelaySeconds: 5
          tcpSocket:
            port: lsp
          timeoutSeconds: 5
        name: xlang-cpp
        ports:
        - containerPort: 8080
          name: lsp
        readinessProbe:
          tcpSocket:
            port: lsp
      securityContext:
        runAsUser: 0
