apiVersion: apps/v1
kind: Deployment
metadata:
  name: triage-party
  namespace: triageparty-release
  labels:
    app: triage-party
spec:
  selector:
    matchLabels:
      app: triage-party
  template:
    metadata:
      labels:
        app: triage-party
    spec:
      containers:
        - name: triage-party
          image: triageparty/triage-party:1.3.0
          env:
            - name: GITHUB_TOKEN
              valueFrom:
                secretKeyRef:
                  name: triage-party-github-token
                  key: token
            - name: PERSIST_BACKEND
              value: "disk"
            - name: PERSIST_PATH
              value: "/app/triage-party/cache"
          ports:
            - containerPort: 8080
          readinessProbe:
            failureThreshold: 3
            httpGet:
              path: /health
              port: 8080
              scheme: HTTP
            timeoutSeconds: 5
          resources:
            limits:
              cpu: 1
              memory: 1Gi
          volumeMounts:
            - name: config
              mountPath: /app/config
            - name: pcache
              mountPath: /app/triage-party
      volumes:
        - name: config
          configMap:
            name: triage-party-config-release
        - name: pcache
          persistentVolumeClaim:
            claimName: triage-party-persistence

apiVersion: apps/v1
kind: Deployment
metadata:
  name: triage-party
  namespace: triageparty-release
  labels:
    app: triage-party
spec:
  selector:
    matchLabels:
      app: triage-party
  template:
    metadata:
      labels:
        app: triage-party
    spec:
      containers:
        - name: triage-party
          image: triageparty/triage-party:1.3.0
          env:
            - name: GITHUB_TOKEN
              valueFrom:
                secretKeyRef:
                  name: triage-party-github-token
                  key: token
            - name: PERSIST_BACKEND
              value: "disk"
            - name: PERSIST_PATH
              value: "/app/triage-party/cache"
          ports:
            - containerPort: 8080
          readinessProbe:
            failureThreshold: 3
            httpGet:
              path: /health
              port: 8080
              scheme: HTTP
            timeoutSeconds: 5
          resources:
            limits:
              cpu: 1
              memory: 4Gi
          volumeMounts:
            - name: config
              mountPath: /app/config
            - name: pcache
              mountPath: /app/triage-party
      volumes:
        - name: config
          configMap:
            name: triage-party-config-release
        - name: pcache
          persistentVolumeClaim:
            claimName: triage-party-persistence

Increase the memory limit for Triage Party.
Increase the memory limit for Triage Party.

TP is sometimes OOMKilled:

```
Containers:
  triage-party:
    Container ID:   docker://c95c8a1a429a753949d650f2a6aebd4ac63886c77e90604a8516661d21769da8
    Image:          triageparty/triage-party:1.3.0
    Image ID:       docker-pullable://triageparty/triage-party@sha256:4aa57022c43ba5499b5e9eb0cb5d6ea4d31ca5b5a3c518212b3beddfdbc439de
    Port:           8080/TCP
    Host Port:      0/TCP
    State:          Running
      Started:      Tue, 26 Jan 2021 16:38:10 +0000
    Last State:     Terminated
      Reason:       OOMKilled
      Exit Code:    137
      Started:      Tue, 26 Jan 2021 13:55:21 +0000
      Finished:     Tue, 26 Jan 2021 16:38:09 +0000
```

Signed-off-by: Arnaud Meukam <96190fcd0798f0afa72279990e31ddc33e4f2ea2@gmail.com>
