apiVersion: v1 kind: Pod metadata: name: document-ai-indexer spec: restartPolicy: Never volumes: # 1. 原有的 ConfigMap 卷 - name: config-volume configMap: name: document-ai-indexer-config items: - key: env.yaml path: env.yaml - key: config.yaml path: config.yaml # 2. Azure File Share 卷 - name: data-volume azureFile: secretName: azure-files-cred # 引用你创建的 Secret shareName: fs-document-ai-indexer # 你的文件共享名称 readOnly: false # 写权限 containers: - name: document-ai-indexer image: acraiflowlab.azurecr.io/document-ai-indexer:2.0.1 imagePullPolicy: Always # 挂载卷到容器内 volumeMounts: # ConfigMap 挂载 - name: config-volume mountPath: /app/env.yaml subPath: env.yaml - name: config-volume mountPath: /app/config.yaml subPath: config.yaml # Azure File 共享挂载 - name: data-volume mountPath: /app/run_tmp # 程序写入/读取目录