# Keep the primary backend's existing /data PVC unchanged.  Code diagnosis
# receives its TiDB full bare mirror from this second, dedicated PVC.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: backend
spec:
  template:
    spec:
      containers:
        - name: backend
          env:
            - name: INVESTIBOOK_CODE_CONTEXT_CACHE_DIR
              value: /code-cache
          volumeMounts:
            - name: code-cache
              mountPath: /code-cache
      volumes:
        - name: code-cache
          persistentVolumeClaim:
            claimName: investibook-code-cache
