apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    description: LSP server for PHP.
  labels:
    deploy: xlang-php
  name: xlang-php
spec:
  minReadySeconds: 10
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: xlang-php
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: xlang-php
    spec:
      containers:
      - env:
        - name: COMPOSER_AUTH
          value: '{"github-oauth": {"github.com": ""}}'
        image: sourcegraph/xlang-php:00037_2018-07-11_faea319@sha256:2dc231a2088508c1a6c1a87e8db68ea2db7f1dcaf12aea7d4c38b4d071a6749b
        name: xlang-php
        ports:
        - containerPort: 2088
          name: lsp
        resources:
          limits:
            cpu: "4"
            memory: 8Gi
          requests:
            cpu: 500m
            memory: 2Gi
        volumeMounts:
        - mountPath: /tmp
          name: tmp
      securityContext:
        runAsUser: 0
      volumes:
      - emptyDir: {}
        name: tmp
