apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    description: LSP server for Java (used for live requests).
  labels:
    deploy: xlang-java
  name: xlang-java
spec:
  minReadySeconds: 10
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: xlang-java
  strategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: xlang-java
    spec:
      containers:
      - env:
        - name: JVM_OPT
          value: -Xms8000m -Xmx8000m -XX:+PrintFlagsFinal -Dsun.zip.disableMemoryMapping=true
            -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:8001,suspend=n,server=y
        - name: LS_OPT
          value: -l INFO
        # See (./README.md) for information about
        # additional environment variables that you can set here.
        image: sourcegraph/xlang-java-skinny:2018-05-10-1621@sha256:200eb22303c1e10d695c80e3d22e05b2c29211f5ef7f4d1c37df8e9afda5c549
        name: xlang-java
        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
