47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
|
|
apiVersion: v1
|
||
|
|
kind: Pod
|
||
|
|
metadata:
|
||
|
|
name: document-ai-indexer-usermanual
|
||
|
|
spec:
|
||
|
|
restartPolicy: Never
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
# 1. ConfigMap volume
|
||
|
|
- name: config-volume
|
||
|
|
configMap:
|
||
|
|
name: document-ai-indexer-usermanual-config
|
||
|
|
items:
|
||
|
|
- key: env.yaml
|
||
|
|
path: env.yaml
|
||
|
|
- key: config.yaml
|
||
|
|
path: config.yaml
|
||
|
|
- key: prompt.yaml
|
||
|
|
path: prompt.yaml
|
||
|
|
|
||
|
|
# 2. Azure File Share volume
|
||
|
|
- name: data-volume
|
||
|
|
azureFile:
|
||
|
|
secretName: azure-files-cred # Quoting what you created Secret
|
||
|
|
shareName: fs-document-ai-indexer # Your file share name
|
||
|
|
readOnly: false
|
||
|
|
|
||
|
|
containers:
|
||
|
|
- name: document-ai-indexer-usermanual
|
||
|
|
image: acrsales2caiprd.azurecr.cn/document-ai-indexer:2.0.4
|
||
|
|
imagePullPolicy: Always
|
||
|
|
# Mount the volume into the container
|
||
|
|
volumeMounts:
|
||
|
|
# ConfigMap Mount
|
||
|
|
- name: config-volume
|
||
|
|
mountPath: /app/env.yaml
|
||
|
|
subPath: env.yaml
|
||
|
|
- name: config-volume
|
||
|
|
mountPath: /app/config.yaml
|
||
|
|
subPath: config.yaml
|
||
|
|
- name: config-volume
|
||
|
|
mountPath: /app/prompt.yaml
|
||
|
|
subPath: prompt.yaml
|
||
|
|
|
||
|
|
# Azure File Share Mount
|
||
|
|
- name: data-volume
|
||
|
|
mountPath: /app/run_tmp # Directory for program read/write
|